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