N=int(input()) bsc=1 count=0 while(bscN/2: bsc+=(N-bsc) bsc*=2 count+=1 print(count)