import math N=int(input()) print(1+int(math.log2(N)-1)if N>0else 0)