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