n = int(input()) a = 0 b = 1 c = 1 while c < n: b *= 2 if b <= n: c *= 2 a += 1 else: break if b == n: print(a) else: print(a+1)