N=int(input()) x=1 ans=0 while 2*x<=N: x*=2 ans+=1 if x