import sys x, y, h = map(int, input().split()) x *= 1000 y *= 1000 def solve(x, y, h): mx = 0 x_1 = x y_1 = y h_1 = h x_count = 0 while h_1 < x_1: y_1 *= 2 h_1 *= 4 x_count += 1 x_2 = x_1 y_2 = y_1 h_2 = h_1 count = x_count while h_2 < y_2: h_2 *= 4 x_2 *= 2 count += 1 if mx < count: mx = count return mx print(max(solve(x, y, h), solve(y, x, h)))