
"""simple docstring"""






import json
from typing import List, Optional, Tuple

from tokenizers import normalizers

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import logging
from .tokenization_squeezebert import SqueezeBertTokenizer


_lowerCamelCase     =  logging.get_logger(__name__)

_lowerCamelCase     =  {'vocab_file': 'vocab.txt', 'tokenizer_file': 'tokenizer.json'}

_lowerCamelCase     =  {
    'vocab_file': {
        'squeezebert/squeezebert-uncased': (
            'https://huggingface.co/squeezebert/squeezebert-uncased/resolve/main/vocab.txt'
        ),
        'squeezebert/squeezebert-mnli': 'https://huggingface.co/squeezebert/squeezebert-mnli/resolve/main/vocab.txt',
        'squeezebert/squeezebert-mnli-headless': (
            'https://huggingface.co/squeezebert/squeezebert-mnli-headless/resolve/main/vocab.txt'
        ),
    },
    'tokenizer_file': {
        'squeezebert/squeezebert-uncased': (
            'https://huggingface.co/squeezebert/squeezebert-uncased/resolve/main/tokenizer.json'
        ),
        'squeezebert/squeezebert-mnli': (
            'https://huggingface.co/squeezebert/squeezebert-mnli/resolve/main/tokenizer.json'
        ),
        'squeezebert/squeezebert-mnli-headless': (
            'https://huggingface.co/squeezebert/squeezebert-mnli-headless/resolve/main/tokenizer.json'
        ),
    },
}

_lowerCamelCase     =  {
    'squeezebert/squeezebert-uncased': 512,
    'squeezebert/squeezebert-mnli': 512,
    'squeezebert/squeezebert-mnli-headless': 512,
}


_lowerCamelCase     =  {
    'squeezebert/squeezebert-uncased': {'do_lower_case': True},
    'squeezebert/squeezebert-mnli': {'do_lower_case': True},
    'squeezebert/squeezebert-mnli-headless': {'do_lower_case': True},
}


class 			lowerCamelCase_		(			_snake_case   ):





				"""simple docstring"""







				_lowerCAmelCase      :      List[Any]      							=					VOCAB_FILES_NAMES
				_lowerCAmelCase      :      Any      							=					PRETRAINED_VOCAB_FILES_MAP
				_lowerCAmelCase      :      Tuple      							=					PRETRAINED_INIT_CONFIGURATION
				_lowerCAmelCase      :      Optional[int]      							=					PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
				_lowerCAmelCase      :      Dict      							=					SqueezeBertTokenizer



				def __init__(						self       ,		UpperCAmelCase__=None       ,		UpperCAmelCase__=None       ,		UpperCAmelCase__=True       ,		UpperCAmelCase__="[UNK]"       ,		UpperCAmelCase__="[SEP]"       ,		UpperCAmelCase__="[PAD]"       ,		UpperCAmelCase__="[CLS]"       ,		UpperCAmelCase__="[MASK]"       ,		UpperCAmelCase__=True       ,		UpperCAmelCase__=None       ,		**UpperCAmelCase__       ,		):
								super().__init__(
								    lowerCAmelCase__       ,		tokenizer_file=lowerCAmelCase__       ,		do_lower_case=lowerCAmelCase__       ,		unk_token=lowerCAmelCase__       ,		sep_token=lowerCAmelCase__       ,		pad_token=lowerCAmelCase__       ,		cls_token=lowerCAmelCase__       ,		mask_token=lowerCAmelCase__       ,		tokenize_chinese_chars=lowerCAmelCase__       ,		strip_accents=lowerCAmelCase__       ,		**lowerCAmelCase__       ,		)

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

								SCREAMING_SNAKE_CASE__     							=				do_lower_case



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__       ,		UpperCAmelCase__=None     ):
								SCREAMING_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       ,		UpperCAmelCase__       ,		UpperCAmelCase__ = None     ):
								SCREAMING_SNAKE_CASE__     							=				[self.sep_token_id]
								SCREAMING_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       ,		UpperCAmelCase__       ,		UpperCAmelCase__ = None     ):
								SCREAMING_SNAKE_CASE__     							=				self._tokenizer.model.save(lowerCAmelCase__       ,		name=lowerCAmelCase__     )
								return tuple(lowerCAmelCase__     )




"""simple docstring"""






from math import sqrt


def __lowercase     (      lowerCamelCase_  :      int  ):
				SCREAMING_SNAKE_CASE__     							=				0
				for i in range(1						,					int(sqrt(lowerCamelCase_  ) + 1  )  ):
								if n % i == 0 and i != sqrt(lowerCamelCase_  ):
												total += i + n // i
								elif i == sqrt(lowerCamelCase_  ):
												total += i
				return total - n


def __lowercase     (      lowerCamelCase_  :      int = 10000  ):
				SCREAMING_SNAKE_CASE__     							=				sum(
				    i
				    for i in range(1						,					lowerCamelCase_  )
				    if sum_of_divisors(sum_of_divisors(lowerCamelCase_  )  ) == i and sum_of_divisors(lowerCamelCase_  ) != i  )
				return total


if __name__ == "__main__":
	print(solution(int(str(input()).strip())))
