N=int(input()) B=1 for i in range(2**20): B = B*2 if B >= N: break if N==1: print(0) else: print(i+1)