N = int(input()) count = 0 while True: N = N - N // 2 count += 1 if N == 1: print(count) exit()