import math N = int(input()) k = 1 for i in range(10*10): k = (2**i) if k >= N+1: break #print(k, i) print(i)