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