import math n = int(input()) m = math.log(n-1, 2) + 1 print(int(m))