import math N = int(input()) x = int(math.log(N,2)) y = N - (2 ** x) if y == 0: print(x) else: print(x+1)