import bisect N = int(input()) biscuits = [2 ** i for i in range(1,50)] ind = bisect.bisect_left(biscuits,N) if ind == 0: print(0) else: print(ind+1)