N = int(input()) def divide_counter(N): s=1 counter = 0 while 1: s=s*2 if s<=N: counter+=1 else: break return counter print(divide_counter(N))