N = int(input()) tmp = 1 count=0 while(1): tmp*=2 if(tmp>N): break count+=1 if( (N-tmp/2)==0 ): print(count) else: print(count+1)