p=int(input()) ans=2**p-1 q=format(ans,"b") print(q.count("1"))