N = int(input()) c = 1 while 2 ** c < N: c += 1 if N == 1:print(0) else:print(c)