
"""simple docstring"""





from ...configuration_utils import PretrainedConfig


class A_	(lowercase__      ):




  '''simple docstring'''
  SCREAMING_SNAKE_CASE__			:						List[str]       =		"""bert-generation"""







  def __init__(		self				,   lowercase_=5_0358				,   lowercase_=1024				,   lowercase_=24				,   lowercase_=16				,   lowercase_=4096				,   lowercase_="gelu"				,   lowercase_=0.1				,   lowercase_=0.1				,   lowercase_=512				,   lowercase_=0.02				,   lowercase_=1E-1_2				,   lowercase_=0				,   lowercase_=2				,   lowercase_=1				,   lowercase_="absolute"				,   lowercase_=True				,   **lowercase_				,   ):

     """simple docstring"""
     super().__init__(pad_token_id=lowercase_				,   bos_token_id=lowercase_				,   eos_token_id=lowercase_				,   **lowercase_  )

     UpperCAmelCase_					:					Tuple			     =    vocab_size
     UpperCAmelCase_					:					Dict			     =    hidden_size
     UpperCAmelCase_					:					Optional[Any]			     =    num_hidden_layers
     UpperCAmelCase_					:					str			     =    num_attention_heads
     UpperCAmelCase_					:					Tuple			     =    hidden_act
     UpperCAmelCase_					:					Tuple			     =    intermediate_size
     UpperCAmelCase_					:					List[str]			     =    hidden_dropout_prob
     UpperCAmelCase_					:					int			     =    attention_probs_dropout_prob
     UpperCAmelCase_					:					int			     =    max_position_embeddings
     UpperCAmelCase_					:					Union[str, Any]			     =    initializer_range
     UpperCAmelCase_					:					Union[str, Any]			     =    layer_norm_eps
     UpperCAmelCase_					:					Optional[Any]			     =    position_embedding_type
     UpperCAmelCase_					:					Any			     =    use_cache




"""simple docstring"""





def 	__a     (		__lowerCamelCase = 3,		__lowerCamelCase = 7,		__lowerCamelCase = 100_0000  ):
   UpperCAmelCase_					:					Dict			     =    0
   UpperCAmelCase_					:					List[Any]			     =    1

   for current_denominator in range(1,		limit + 1  ):
      UpperCAmelCase_					:					Dict			     =    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_					:					Optional[int]			     =    current_denominator
   return max_numerator


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


