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