def numpeach(d): if d == n: return 1 ans=(numpeach(d+1)+1)*2 return ans n=int(input()) ans=numpeach(1) print(ans)