N = int(input()) x = 1 count = 0 while True: if x == N: break elif x < N: count += 1 x = x * 2 else: break print(count)