#coding: utf-8 ##yuki_47 n=int(raw_input()) count=0 while n>1: n=(n+1)/2 count+=1 print count