import math num = int(input()) print(math.ceil(math.log2(num)) if num>1 else 0)