闰土
ans=1 n=input().split(" ") n=int(n[0]) cnt=1 for i in range(2,n+1): cnt+=1 ans=ans*(pow(2,cnt)-1) print(ans%1000000007)