N = int(input()) n = len(list(bin(N))[2:]) - 1 m = N - 2**n if m == 0: print(n) else: if m % 2 == 0: print(n + 1) else: print(n + 2)