p = int(input()) mp = 2**p - 1 bmp = bin(mp) ans = 0 for i in range(2, len(bmp)): ans += int(bmp[i]) print(ans)