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