

def       lowercase					(	__A :					int = 3 ,    __A :					int = 7 ,    __A :					int = 100_0000		)				->			int:





    '''simple docstring'''




    snake_case							:		Tuple        =		0
    snake_case							:		Union[str, Any]        =		1

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


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







'''simple docstring'''
import baseaa




def 	_A  (       A							)  ->				bytes:
	return baseaa.aaaencode(string.encode("utf-8"							)							)




def 	_A  (       A							)  ->				str:
	return baseaa.aaadecode(A							).decode("utf-8"							)


if __name__ == "__main__":
					import doctest

					doctest.testmod()


