


from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


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

__UpperCAmelCase			:			Optional[int]			      =					{
    "google/electra-small-generator": "https://huggingface.co/google/electra-small-generator/resolve/main/config.json",
    "google/electra-base-generator": "https://huggingface.co/google/electra-base-generator/resolve/main/config.json",
    "google/electra-large-generator": "https://huggingface.co/google/electra-large-generator/resolve/main/config.json",
    "google/electra-small-discriminator": (
        "https://huggingface.co/google/electra-small-discriminator/resolve/main/config.json"
    ),
    "google/electra-base-discriminator": (
        "https://huggingface.co/google/electra-base-discriminator/resolve/main/config.json"
    ),
    "google/electra-large-discriminator": (
        "https://huggingface.co/google/electra-large-discriminator/resolve/main/config.json"
    ),
}



class  UpperCAmelCase_						(				A__):
       '''simple docstring'''
       __UpperCamelCase   :  Optional[int]				=       "electra"






       def __init__(  self			,       __SCREAMING_SNAKE_CASE=30_522			,       __SCREAMING_SNAKE_CASE=128			,       __SCREAMING_SNAKE_CASE=256			,       __SCREAMING_SNAKE_CASE=12			,       __SCREAMING_SNAKE_CASE=4			,       __SCREAMING_SNAKE_CASE=1_024			,       __SCREAMING_SNAKE_CASE="gelu"			,       __SCREAMING_SNAKE_CASE=0.1			,       __SCREAMING_SNAKE_CASE=0.1			,       __SCREAMING_SNAKE_CASE=512			,       __SCREAMING_SNAKE_CASE=2			,       __SCREAMING_SNAKE_CASE=0.02			,       __SCREAMING_SNAKE_CASE=1e-12			,       __SCREAMING_SNAKE_CASE="first"			,       __SCREAMING_SNAKE_CASE=True			,       __SCREAMING_SNAKE_CASE="gelu"			,       __SCREAMING_SNAKE_CASE=0.1			,       __SCREAMING_SNAKE_CASE=0			,       __SCREAMING_SNAKE_CASE="absolute"			,       __SCREAMING_SNAKE_CASE=True			,       __SCREAMING_SNAKE_CASE=None			,       **__SCREAMING_SNAKE_CASE			,       ):




              """simple docstring"""




              super().__init__(pad_token_id=__A			,       **__A    )

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

              UpperCamelCase     :						int 						=		summary_type
              UpperCamelCase     :						Optional[Any] 						=		summary_use_proj
              UpperCamelCase     :						Tuple 						=		summary_activation
              UpperCamelCase     :						Tuple 						=		summary_last_dropout
              UpperCamelCase     :						List[Any] 						=		position_embedding_type
              UpperCamelCase     :						Dict 						=		use_cache
              UpperCamelCase     :						Optional[Any] 						=		classifier_dropout




class  UpperCAmelCase_						(				A__):
       '''simple docstring'''






       @property
       def 			_lowercase (  self    ):




              """simple docstring"""




              if self.task == "multiple-choice":
                     UpperCamelCase     :						Optional[int] 						=		{0: """batch""", 1: """choice""", 2: """sequence"""}
              else:
                     UpperCamelCase     :						Union[str, Any] 						=		{0: """batch""", 1: """sequence"""}
              return OrderedDict(
                  [
                      ('''input_ids''', dynamic_axis),
                      ('''attention_mask''', dynamic_axis),
                      ('''token_type_ids''', dynamic_axis),
                  ]    )



"""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())






