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