import math p = int(input()) n = pow(2, p) - 1 c = 0 while n > 0: c += int(n % 2) n = n >> 1 print(c)