x,y,h=map(int,input()) h=h/1000 ans=0 while x>h & y>h: if x>y: y=y/2 h=h*2 else: x=x/2 h=h*2 ans+=1 print(ans)