p = int(input()) sosuu = pow(2, p) - 1 count = 0 for x in bin(sosuu): if x == '1': count += 1 print(count)