import math N = int(raw_input()) LOG = math.log(N, 2) if LOG == int(LOG): print(str(int(LOG))) else: print(str(int(LOG) + 1))