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