p = int(input()) num = 2 ** p - 1 print(list(bin(num)).count('1'))