import math goal = int(input()) ans= math.log2(goal) print(ans)