p=int(input()) a=(2**p)-1 array=[] num="" while a!=0: array.append(a%2) a//=2 for i in range(len(array)): num+=str(array[i]) print(num.count("1"))