
'''simple docstring'''







from ...configuration_utils import PretrainedConfig
from ...utils import logging


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

_snake_case					: Dict     			=					{
    """facebook/opt-125m""": """https://huggingface.co/facebook/opt-125m/blob/main/config.json""",
    """facebook/opt-350m""": """https://huggingface.co/facebook/opt-350m/blob/main/config.json""",
    """facebook/opt-1.3b""": """https://huggingface.co/facebook/opt-1.3b/blob/main/config.json""",
    """facebook/opt-2.7b""": """https://huggingface.co/facebook/opt-2.7b/blob/main/config.json""",
    """facebook/opt-6.7b""": """https://huggingface.co/facebook/opt-6.7b/blob/main/config.json""",
    """facebook/opt-13b""": """https://huggingface.co/facebook/opt-13b/blob/main/config.json""",
}


class       lowerCAmelCase			(					A__      ):
		a				:       str							=       "opt"
		a				:       Union[str, Any]							=       ["past_key_values"]




		def __init__(					self       ,    UpperCamelCase=50_272       ,    UpperCamelCase=768       ,    UpperCamelCase=12       ,    UpperCamelCase=3_072       ,    UpperCamelCase=2_048       ,    UpperCamelCase=True       ,    UpperCamelCase=False       ,    UpperCamelCase=None       ,    UpperCamelCase=0.1       ,    UpperCamelCase=0.0       ,    UpperCamelCase=12       ,    UpperCamelCase="relu"       ,    UpperCamelCase=0.0       ,    UpperCamelCase=0.02       ,    UpperCamelCase=True       ,    UpperCamelCase=1       ,    UpperCamelCase=2       ,    UpperCamelCase=2       ,    UpperCamelCase=True       ,    UpperCamelCase=True       ,    **UpperCamelCase       ,    ):
								super().__init__(
								    pad_token_id=__A       ,    bos_token_id=__A       ,    eos_token_id=__A       ,    **__A       ,    )
								_SCREAMING_SNAKE_CASE					=			vocab_size
								_SCREAMING_SNAKE_CASE					=			max_position_embeddings
								_SCREAMING_SNAKE_CASE					=			num_attention_heads
								_SCREAMING_SNAKE_CASE					=			word_embed_proj_dim if word_embed_proj_dim is not None else hidden_size
								_SCREAMING_SNAKE_CASE					=			ffn_dim
								_SCREAMING_SNAKE_CASE					=			hidden_size
								_SCREAMING_SNAKE_CASE					=			num_hidden_layers
								_SCREAMING_SNAKE_CASE					=			dropout
								_SCREAMING_SNAKE_CASE					=			attention_dropout
								_SCREAMING_SNAKE_CASE					=			activation_function
								_SCREAMING_SNAKE_CASE					=			init_std
								_SCREAMING_SNAKE_CASE					=			layerdrop
								_SCREAMING_SNAKE_CASE					=			use_cache
								_SCREAMING_SNAKE_CASE					=			do_layer_norm_before
								# We keep these variables at `True` for backward compatibility.
								_SCREAMING_SNAKE_CASE					=			enable_bias
								_SCREAMING_SNAKE_CASE					=			layer_norm_elementwise_affine

								# Note that the only purpose of `_remove_final_layer_norm` is to keep backward compatibility
								# with checkpoints that have been fine-tuned before transformers v4.20.1
								# see https://github.com/facebookresearch/metaseq/pull/164
								_SCREAMING_SNAKE_CASE					=			_remove_final_layer_norm

"""simple docstring"""






import math






def 		_snake_case			(      lowercase__						:    int						)    ->							int:


			'''simple docstring'''





			return sum(int(lowercase__						) for digit in str(lowercase__						)						)






def 		_snake_case			(      lowercase__						:    int = 3_0						)    ->							int:


			'''simple docstring'''





			lowerCAmelCase_       :Union[str, Any]     	=    []
			for digit in range(2 ,	1_0_0						):
						for power in range(2 ,	1_0_0						):
									lowerCAmelCase_       :Tuple     	=    int(math.pow(lowercase__ ,	lowercase__						)						)
									if digit == digit_sum(lowercase__						):
												digit_to_powers.append(lowercase__						)

			digit_to_powers.sort()
			return digit_to_powers[n - 1]


if __name__ == "__main__":
				print(solution())






