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 = n / 2 h = h * 2 count += 1 return (n, h, count) while True: if y >= x: if x > 1 and x > h: x, h, count = do(x, h, count) elif y > 1 and y > h: y, h, count = do(y, h, count) else: break elif x >= y: if y > 1 and y > h: y, h, count = do(y, h, count) elif x > 1 and x > h: x, h, count = do(x, h, count) else: break print(count)