n = int(input()) pang = None for i in range(28): if 2 ** i > n: pang = i - 1 break if 2 ** pang == n: res = pang else: res = pang + 1 print(res)