n = int(input()) c, ans = 1, 1 while True: c *= 2 ans += 1 if c >= n // 2: break print(ans)