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