




'''simple docstring'''



from collections import OrderedDict
from typing import Mapping

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


UpperCamelCase_    	=				logging.get_logger(__name__)

UpperCamelCase_    	=				{
    "junnyu/roformer_chinese_small": "https://huggingface.co/junnyu/roformer_chinese_small/resolve/main/config.json",
    "junnyu/roformer_chinese_base": "https://huggingface.co/junnyu/roformer_chinese_base/resolve/main/config.json",
    "junnyu/roformer_chinese_char_small": (
        "https://huggingface.co/junnyu/roformer_chinese_char_small/resolve/main/config.json"
    ),
    "junnyu/roformer_chinese_char_base": (
        "https://huggingface.co/junnyu/roformer_chinese_char_base/resolve/main/config.json"
    ),
    "junnyu/roformer_small_discriminator": (
        "https://huggingface.co/junnyu/roformer_small_discriminator/resolve/main/config.json"
    ),
    "junnyu/roformer_small_generator": (
        "https://huggingface.co/junnyu/roformer_small_generator/resolve/main/config.json"
    ),
    # See all RoFormer models at https://huggingface.co/models?filter=roformer
}






class 							_a				(			SCREAMING_SNAKE_CASE ):





       '''simple docstring'''






       A						:				List[str]        =						'''roformer'''







       def __init__(      self,							A=50_000,							A=None,							A=768,							A=12,							A=12,							A=3_072,							A="gelu",							A=0.1,							A=0.1,							A=1_536,							A=2,							A=0.02,							A=1E-12,							A=0,							A=False,							A=True,							**A,							):







             '''simple docstring'''







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

             SCREAMING_SNAKE_CASE   :      List[Any]    					=						vocab_size
             SCREAMING_SNAKE_CASE   :      int    					=						hidden_size if embedding_size is None else embedding_size
             SCREAMING_SNAKE_CASE   :      Union[str, Any]    					=						hidden_size
             SCREAMING_SNAKE_CASE   :      Dict    					=						num_hidden_layers
             SCREAMING_SNAKE_CASE   :      List[str]    					=						num_attention_heads
             SCREAMING_SNAKE_CASE   :      Any    					=						hidden_act
             SCREAMING_SNAKE_CASE   :      Optional[int]    					=						intermediate_size
             SCREAMING_SNAKE_CASE   :      str    					=						hidden_dropout_prob
             SCREAMING_SNAKE_CASE   :      int    					=						attention_probs_dropout_prob
             SCREAMING_SNAKE_CASE   :      Optional[int]    					=						max_position_embeddings
             SCREAMING_SNAKE_CASE   :      List[str]    					=						type_vocab_size
             SCREAMING_SNAKE_CASE   :      List[str]    					=						initializer_range
             SCREAMING_SNAKE_CASE   :      Tuple    					=						layer_norm_eps
             SCREAMING_SNAKE_CASE   :      Tuple    					=						rotary_value
             SCREAMING_SNAKE_CASE   :      str    					=						use_cache






class 							_a				(			SCREAMING_SNAKE_CASE ):





       '''simple docstring'''






       @property
       def        UpperCamelCase_							(      self  ):







             '''simple docstring'''







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









'''simple docstring'''




def 			_lowerCAmelCase     (    __snake_case    :					int     )	->	bool:
     return sum(i for i in range(1					,				number // 2 + 1     ) if number % i == 0     ) == number


if __name__ == "__main__":
  print('''Program to check whether a number is a Perfect number or not...''')
  lowercase__       : int         =       int(input('''Enter number: ''').strip())
  print(f"""{number} is {"" if perfect(number) else "not "}a Perfect Number.""")