from math import log2 n = int(input()) print(int(log2(n - 1)) + 1)