import sys x,y,h = map(int, sys.stdin.readline().strip().split()) count = 0 x = x * 100 * 10 y = y * 100 * 10 def do(n, h, count): n = int(n / 2) h = h * 2 count += 1 return (n, h, count) while True: if y >= x: if x >= 2 and x > h: x, h, count = do(x, h, count) elif y >= 2 and y > h: y, h, count = do(y, h, count) else: break elif x >= y: if y >= 2 and y > h: y, h, count = do(y, h, count) elif x >= 2 and x > h: x, h, count = do(x, h, count) else: break print(count)