n = int(input()) p = 0 while 2**(p+1) <= n: p += 1 print(p + (n - 2**p != 0))