



'''simple docstring'''
def A__    (     UpperCAmelCase_ = 3  ,  UpperCAmelCase_ = 7  ,  UpperCAmelCase_ = 1_0_0_0_0_0_0							):
						_UpperCamelCase					:		Optional[Any] 				=   0
						_UpperCamelCase					:		Tuple 				=   1

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


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







'''simple docstring'''






import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin



class 							lowercase       (  unittest.TestCase					,					_lowerCamelCase				):


 """simple docstring"""


 def _snake_case (							self							)		->   Any:
        _UpperCAmelCase  :						int			     = load_tool("""text-classification"""							)
        self.tool.setup()
        _UpperCAmelCase  :						Tuple			     = load_tool("""text-classification"""  ,remote=a_							)







 def _snake_case (							self							)		->   Union[str, Any]:
        _UpperCAmelCase  :						Tuple			     = self.tool("""That's quite cool"""  ,["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   Any:
        _UpperCAmelCase  :						Dict			     = self.remote_tool("""That's quite cool"""  ,["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   str:
        _UpperCAmelCase  :						List[Any]			     = self.tool(text="""That's quite cool"""  ,labels=["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)







 def _snake_case (							self							)		->   Union[str, Any]:
        _UpperCAmelCase  :						Any			     = self.remote_tool(text="""That's quite cool"""  ,labels=["""positive""", """negative"""]							)
        self.assertEqual(a_  ,"""positive"""							)



