N = int(input()) current_biscuit = 1 knock = 0 coefficient = 2 while True: if current_biscuit <= N / 2: current_biscuit *= coefficient knock += 1 else: knock += 1 break print(knock)