N = int(input()) C = 1 H = 1 while C < N: C *= 2 H += 1 print(H-1)