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