import math a=int(input()) i1=0 for i in range(1,int(a/2)): if a!=1: a=math.floor(a/2) i1+=1 else: print(i) break