N = int(input()) for i in range(31): if ((N - 1) >> i) == 0: print(i) break