

def    __UpperCAmelCase (	__a      :			int = 3		,__a      :			int = 7		,__a      :			int = 1_000_000	)			->     int:

					"""simple docstring"""

					_a	:    Union[str, Any]         =		0
					_a	:    Union[str, Any]         =		1

					for current_denominator in range(1		,limit + 1	):
										_a	:    Any         =		current_denominator * numerator // denominator
										if current_denominator % denominator == 0:
															current_numerator -= 1
										if current_numerator * max_denominator > current_denominator * max_numerator:
															_a	:    List[Any]         =		current_numerator
															_a	:    Optional[int]         =		current_denominator
					return max_numerator


if __name__ == "__main__":
			print(solution(numerator=3, denominator=7, limit=1000000))






from diffusers.utils.testing_utils import require_onnxruntime

@require_onnxruntime
class 				UpperCAmelCase_		:
							"""simple docstring"""







							pass



