p = int(input()) num = 2**p-1 bnum = str(bin(num))[2:] cnt = bnum.count('1') print(cnt)