N = format(int(input())-1, 'b') if N == "0": L = 0 else: L =len(N) print(L)