N=int(input()) p=0 while N>1: N=N/2 p=p+1 print(p)