import math S = raw_input() A = math.log(S,2) print int(A)