


"""simple docstring"""






from typing import Dict, List, Optional

from ...tokenization_utils import AddedToken, PreTrainedTokenizer
from ...utils import logging


_lowerCamelCase     =  logging.get_logger(__name__)


_lowerCamelCase     =  {
    'nielsr/canine-s': 2048,
}

# Unicode defines 1,114,112 total “codepoints”
_lowerCamelCase     =  1114112

# Below: Constants defining canonical codepoints for special, pseudo-characters.
# Copied from https://github.com/google-research/language/blob/master/language/canine/special_codepoints.py
_lowerCamelCase     =  0

_lowerCamelCase     =  0Xe000
_lowerCamelCase     =  0Xe001
_lowerCamelCase     =  0Xe002
_lowerCamelCase     =  0Xe003
_lowerCamelCase     =  0Xe004

# Maps special codepoints to human-readable names.
_lowerCamelCase     =  {
    # Special symbols are represented using codepoints values that are valid,
    # but designated as "Private Use", meaning that they will never be assigned
    # characters by the Unicode Consortium, and are thus safe for use here.
    #
    # NOTE: Do *NOT* add any sort of [UNK_CHAR] here. They are explicitly
    # excluded and should fail with a hard error.
    CLS: "[CLS]",
    SEP: "[SEP]",
    BOS: "[BOS]",
    MASK: "[MASK]",
    PAD: "[PAD]",
    RESERVED: "[RESERVED]",
}

# Maps special codepoint human-readable names to their codepoint values.
_lowerCamelCase     =  {name: codepoint for codepoint, name in SPECIAL_CODEPOINTS.items()}


class 			lowerCamelCase_		(			lowercase   ):





				"""simple docstring"""







				_lowerCAmelCase      :      Optional[Any]      							=					PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES



				def __init__(						self       ,		UpperCAmelCase__=chr(UpperCAmelCase__     )       ,		UpperCAmelCase__=chr(UpperCAmelCase__     )       ,		UpperCAmelCase__=chr(UpperCAmelCase__     )       ,		UpperCAmelCase__=chr(UpperCAmelCase__     )       ,		UpperCAmelCase__=chr(UpperCAmelCase__     )       ,		UpperCAmelCase__=chr(UpperCAmelCase__     )       ,		UpperCAmelCase__=False       ,		UpperCAmelCase__=2048       ,		**UpperCAmelCase__       ,		):
								SCREAMING_SNAKE_CASE__     							=				AddedToken(UpperCAmelCase__       ,		lstrip=UpperCAmelCase__       ,		rstrip=UpperCAmelCase__     ) if isinstance(UpperCAmelCase__       ,		UpperCAmelCase__     ) else bos_token
								SCREAMING_SNAKE_CASE__     							=				AddedToken(UpperCAmelCase__       ,		lstrip=UpperCAmelCase__       ,		rstrip=UpperCAmelCase__     ) if isinstance(UpperCAmelCase__       ,		UpperCAmelCase__     ) else eos_token
								SCREAMING_SNAKE_CASE__     							=				AddedToken(UpperCAmelCase__       ,		lstrip=UpperCAmelCase__       ,		rstrip=UpperCAmelCase__     ) if isinstance(UpperCAmelCase__       ,		UpperCAmelCase__     ) else sep_token
								SCREAMING_SNAKE_CASE__     							=				AddedToken(UpperCAmelCase__       ,		lstrip=UpperCAmelCase__       ,		rstrip=UpperCAmelCase__     ) if isinstance(UpperCAmelCase__       ,		UpperCAmelCase__     ) else cls_token
								SCREAMING_SNAKE_CASE__     							=				AddedToken(UpperCAmelCase__       ,		lstrip=UpperCAmelCase__       ,		rstrip=UpperCAmelCase__     ) if isinstance(UpperCAmelCase__       ,		UpperCAmelCase__     ) else pad_token

								# Mask token behave like a normal word, i.e. include the space before it
								SCREAMING_SNAKE_CASE__     							=				AddedToken(UpperCAmelCase__       ,		lstrip=UpperCAmelCase__       ,		rstrip=UpperCAmelCase__     ) if isinstance(UpperCAmelCase__       ,		UpperCAmelCase__     ) else mask_token

								super().__init__(
								    bos_token=UpperCAmelCase__       ,		eos_token=UpperCAmelCase__       ,		sep_token=UpperCAmelCase__       ,		cls_token=UpperCAmelCase__       ,		pad_token=UpperCAmelCase__       ,		mask_token=UpperCAmelCase__       ,		add_prefix_space=UpperCAmelCase__       ,		model_max_length=UpperCAmelCase__       ,		**UpperCAmelCase__       ,		)

								# Creates a mapping for looking up the IDs of special symbols.
								SCREAMING_SNAKE_CASE__     							=				{}
								for codepoint, name in SPECIAL_CODEPOINTS.items():
												SCREAMING_SNAKE_CASE__     							=				codepoint

								# Creates a mapping for looking up the string forms of special symbol IDs.
								SCREAMING_SNAKE_CASE__     							=				{
								    codepoint: name for name, codepoint in self._special_codepoints.items()
								}

								SCREAMING_SNAKE_CASE__     							=				UNICODE_VOCAB_SIZE
								SCREAMING_SNAKE_CASE__     							=				len(self._special_codepoints     )



				@property
				def   lowerCAmelCase__		(						self     ):
								return self._unicode_vocab_size



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__     ):
								return list(UpperCAmelCase__     )



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__     ):
								try:
												return ord(UpperCAmelCase__     )
								except TypeError:
												raise ValueError(f'''invalid token: \'{token}\''''     )



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__     ):
								try:
												if index in SPECIAL_CODEPOINTS:
																return SPECIAL_CODEPOINTS[index]
												return chr(UpperCAmelCase__     )
								except TypeError:
												raise ValueError(f'''invalid id: {index}'''     )



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__     ):
								return "".join(UpperCAmelCase__     )



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__       ,		UpperCAmelCase__ = None     ):
								SCREAMING_SNAKE_CASE__     							=				[self.sep_token_id]
								SCREAMING_SNAKE_CASE__     							=				[self.cls_token_id]

								SCREAMING_SNAKE_CASE__     							=				cls + token_ids_a + sep
								if token_ids_a is not None:
												result += token_ids_a + sep
								return result



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__       ,		UpperCAmelCase__ = None       ,		UpperCAmelCase__ = False     ):
								if already_has_special_tokens:
												return super().get_special_tokens_mask(
												    token_ids_a=UpperCAmelCase__       ,		token_ids_a=UpperCAmelCase__       ,		already_has_special_tokens=UpperCAmelCase__     )

								SCREAMING_SNAKE_CASE__     							=				[1] + ([0] * len(UpperCAmelCase__     )) + [1]
								if token_ids_a is not None:
												result += ([0] * len(UpperCAmelCase__     )) + [1]
								return result



				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__       ,		UpperCAmelCase__ = None     ):
								SCREAMING_SNAKE_CASE__     							=				[self.sep_token_id]
								SCREAMING_SNAKE_CASE__     							=				[self.cls_token_id]

								SCREAMING_SNAKE_CASE__     							=				len(cls + token_ids_a + sep     ) * [0]
								if token_ids_a is not None:
												result += len(token_ids_a + sep     ) * [1]
								return result






				def   lowerCAmelCase__		(						self       ,		UpperCAmelCase__       ,		UpperCAmelCase__ = None     ):
								return ()




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