import math p = int(input()) n = 2**p - 1 c = 0 m = n while m > 0: c += int(m % 2) m = math.floor(m / 2) print(c)