N = int(input()) if N == 0: print(0) else: print(len(bin(N - 1)[2:]))