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