a = int(input()) s = 0 while a>1: a = (a+1)//2 s += 1 print(s)