import math N = int(input()) N_log = math.log(N, 2) i_N_log = int(N_log) if((N_log - i_N_log) != 0): i_N_log += 1 print(i_N_log)