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