n=int(input()) bis=1 cnt=0 while True: prebis=bis bis=bis*2 cnt+=1 if prebis < n <=bis: print(cnt) break