






def       snake_case_		(     lowerCAmelCase_       :						int = 3       ,       lowerCAmelCase_       :						int = 7       ,       lowerCAmelCase_       :						int = 1000000      ):
							__lowercase      :							Dict				=     0
							__lowercase      :							Optional[Any]				=     1

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


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







import warnings

from ...utils import logging
from .image_processing_beit import BeitImageProcessor


lowerCamelCase : Union[str, Any]						   =       logging.get_logger(__name__)

class 		lowerCAmelCase     ( __a			):

					'''simple docstring'''

					def __init__(  self				:	int		,     *__a				:	Dict		,     **__a				:	Optional[Any]							)			->  None:


												"""simple docstring"""

												warnings.warn(
												    """The class BeitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"""
												    """ use BeitImageProcessor instead."""		,     __a		,     )
												super().__init__(*__a		,     **__a							)