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