import math n = int(input()) print(int(math.log2(n)))