N = input() i=0 n_bis=1 if n_bis == int(N): ans = 1 else: while n_bis < int(N): n_bis = 2**i i = i + 1 ans = i-1 print(ans)