



"""simple docstring"""






from ..utils import DummyObject, requires_backends



class     A__     (						metaclass=__SCREAMING_SNAKE_CASE							):




 '''simple docstring'''





 SCREAMING_SNAKE_CASE					   =			['transformers', 'torch', 'note_seq']

 def __init__(  self:	List[str] ,    *_SCREAMING_SNAKE_CASE:	Tuple ,    **_SCREAMING_SNAKE_CASE:	str)       -> List[str]:

    """simple docstring"""

    requires_backends(self ,    ["transformers", "torch", "note_seq"])

 @classmethod
 def 							_SCREAMING_SNAKE_CASE     (  cls:	int ,    *_SCREAMING_SNAKE_CASE:	Optional[Any] ,    **_SCREAMING_SNAKE_CASE:	List[Any])       -> List[str]:

    """simple docstring"""

    requires_backends(cls ,    ["transformers", "torch", "note_seq"])







 @classmethod
 def 							_SCREAMING_SNAKE_CASE     (  cls:	Dict ,    *_SCREAMING_SNAKE_CASE:	Any ,    **_SCREAMING_SNAKE_CASE:	Union[str, Any])       -> List[str]:

    """simple docstring"""

    requires_backends(cls ,    ["transformers", "torch", "note_seq"])




"""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))