def double(n): return 2*n def minus(n): return n-1 x=1 i=0 N=int(input()) while N%2==0: N=N/2 i+=1 while xN: x=minus(x) i+=1 print('%d'%i)