# No.1010 折って重ねて x,y,h=map(int,input().split()) h=float(h) x*=1000.0 y*=1000.0 ans=0 while x>h or y>h: if x<=y: while x>h: x/=2 h*=2 ans+=1 while y>h: y/=2 h*=2 ans+=1 else: while y>h: y/=2 h*=2 ans+=1 while x>h: x/=2 h*=2 ans+=1 print(ans)