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