n=int(input()) total=1 if n==1: print(0) exit() for i in range(1,100000): total=total *2 if total >=n: print(i) break