x,y,h=map(int,input().split()) x=x*1000 y=y+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)