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