N=int(input()) ans=0 while(2**ans