N=int(input()) biscuit=1 count=0 while (biscuit*2)<=N: biscuit*=2 count+=1 count+=1 print(count)