



"""simple docstring"""






import warnings

from ..trainer import Trainer
from ..utils import logging


__snake_case							:     int   =					logging.get_logger(__name__)



class     A__     (						__SCREAMING_SNAKE_CASE							):




	'''simple docstring'''





	def __init__(  self:	List[Any] ,    _SCREAMING_SNAKE_CASE:	Any=None ,    **_SCREAMING_SNAKE_CASE:	str)       -> int:

				"""simple docstring"""

				warnings.warn(
				    "`SageMakerTrainer` is deprecated and will be removed in v5 of Transformers. You can use `Trainer` "
				    "instead." ,    _SCREAMING_SNAKE_CASE ,    )
				super().__init__(args=_SCREAMING_SNAKE_CASE ,    **_SCREAMING_SNAKE_CASE)




"""simple docstring"""






def     _lowercase       (						__snake_case = 3      ,__snake_case = 7      ,__snake_case = 1_000_000			)		->     int:
			__lowerCAmelCase   :						Optional[Any]				= 0
			__lowerCAmelCase   :						List[str]				= 1

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


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