N = int(input()) for i in range(N): if N == 1: print("0") elif 2 ** i < N and 2 ** (i+1) >= N: print(i+1) break