




'''simple docstring'''





import json
from typing import List, Optional, Tuple

from tokenizers import normalizers

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from .tokenization_lxmert import LxmertTokenizer


_SCREAMING_SNAKE_CASE				:  Any 						=					{"vocab_file": "vocab.txt", "tokenizer_file": "tokenizer.json"}

_SCREAMING_SNAKE_CASE				:  Tuple 						=					{
    "vocab_file": {
        "unc-nlp/lxmert-base-uncased": "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/vocab.txt",
    },
    "tokenizer_file": {
        "unc-nlp/lxmert-base-uncased": (
            "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/tokenizer.json"
        ),
    },
}

_SCREAMING_SNAKE_CASE				:  Any 						=					{
    "unc-nlp/lxmert-base-uncased": 512,
}

_SCREAMING_SNAKE_CASE				:  Dict 						=					{
    "unc-nlp/lxmert-base-uncased": {"do_lower_case": True},
}




class 					_snake_case						(      lowercase_				):
			lowerCAmelCase_	: List[Any]					=       VOCAB_FILES_NAMES
			lowerCAmelCase_	: Optional[Any]					=       PRETRAINED_VOCAB_FILES_MAP
			lowerCAmelCase_	: int					=       PRETRAINED_INIT_CONFIGURATION
			lowerCAmelCase_	: Union[str, Any]					=       PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
			lowerCAmelCase_	: Any					=       LxmertTokenizer




			def __init__(   self							,				a__=None							,				a__=None							,				a__=True							,				a__="[UNK]"							,				a__="[SEP]"							,				a__="[PAD]"							,				a__="[CLS]"							,				a__="[MASK]"							,				a__=True							,				a__=None							,				**a__							,				)							->							Optional[Any]:

										'''simple docstring'''




										super().__init__(
										    a__							,				tokenizer_file=a__							,				do_lower_case=a__							,				unk_token=a__							,				sep_token=a__							,				pad_token=a__							,				cls_token=a__							,				mask_token=a__							,				tokenize_chinese_chars=a__							,				strip_accents=a__							,				**a__							,				)

										snake_case_         = json.loads(self.backend_tokenizer.normalizer.__getstate__()				)
										if (
										    normalizer_state.get("lowercase"							,				a__				) != do_lower_case
										    or normalizer_state.get("strip_accents"							,				a__				) != strip_accents
										    or normalizer_state.get("handle_chinese_chars"							,				a__				) != tokenize_chinese_chars
										):
																	snake_case_         = getattr(a__							,				normalizer_state.pop("type"				)				)
																	snake_case_         = do_lower_case
																	snake_case_         = strip_accents
																	snake_case_         = tokenize_chinese_chars
																	snake_case_         = normalizer_class(**a__				)

										snake_case_         = do_lower_case




			def   lowerCAmelCase__							(   self							,				a__							,				a__=None				)							->							Optional[int]:

										'''simple docstring'''




										snake_case_         = [self.cls_token_id] + token_ids_a + [self.sep_token_id]

										if token_ids_a:
																	output += token_ids_a + [self.sep_token_id]

										return output




			def   lowerCAmelCase__							(   self							,				a__							,				a__ = None				)							->							List[int]:

										'''simple docstring'''




										snake_case_         = [self.sep_token_id]
										snake_case_         = [self.cls_token_id]
										if token_ids_a is None:
																	return len(cls + token_ids_a + sep				) * [0]
										return len(cls + token_ids_a + sep				) * [0] + len(token_ids_a + sep				) * [1]




			def   lowerCAmelCase__							(   self							,				a__							,				a__ = None				)							->							Tuple[str]:

										'''simple docstring'''




										snake_case_         = self._tokenizer.model.save(a__							,				name=a__				)
										return tuple(a__				)







def 	a (     A__      :  int	)       -> bool:





      """simple docstring"""



      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(input('Enter number: ').strip())
  print(f"{number} is {'' if perfect(number) else 'not '}a Perfect Number.")


