from scipy.misc import comb n = int(input()) count = 0 for i in range(1,n+1): if comb(n, i) % 2 == 0: count += 1 print(count)