N=int(input()) i=0 while N/2 >= 2**i: i+=1 if N!=2**i: if N%2==0: i=i+1 else: i=i+2 print(i)