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