



'''simple docstring'''





from math import sqrt




def        lowerCamelCase  (				_snake_case  :						int       ):





    '''simple docstring'''


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




def        lowerCamelCase  (				_snake_case  :						List[Any] = 10_000       ):





    '''simple docstring'''


    lowercase__		       =						sum(
        i
        for i in range(1     ,snake_case_       )
        if sum_of_divisors(sum_of_divisors(snake_case_       )       ) == i and sum_of_divisors(snake_case_       ) != i       )
    return total


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









'''simple docstring'''





from typing import List, Optional

from tokenizers import ByteLevelBPETokenizer

from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import logging
from .tokenization_blenderbot_small import BlenderbotSmallTokenizer


SCREAMING_SNAKE_CASE__      					=     logging.get_logger(__name__)

SCREAMING_SNAKE_CASE__      					=     {
    "vocab_file": "vocab.json",
    "merges_file": "merges.txt",
    "tokenizer_config_file": "tokenizer_config.json",
}

SCREAMING_SNAKE_CASE__      					=     {
    "vocab_file": {
        "facebook/blenderbot_small-90M": "https://huggingface.co/facebook/blenderbot_small-90M/resolve/main/vocab.json"
    },
    "merges_file": {
        "facebook/blenderbot_small-90M": "https://huggingface.co/facebook/blenderbot_small-90M/resolve/main/merges.txt"
    },
    "tokenizer_config_file": {
        "facebook/blenderbot_small-90M": (
            "https://huggingface.co/facebook/blenderbot_small-90M/resolve/main/tokenizer_config.json"
        )
    },
}

SCREAMING_SNAKE_CASE__      					=     {
    "facebook/blenderbot_small-90M": 512,
}


class 				snake_case (UpperCamelCase   ):
       lowerCAmelCase__  :Union[str, Any]						   =					VOCAB_FILES_NAMES
       lowerCAmelCase__  :Any						   =					PRETRAINED_VOCAB_FILES_MAP
       lowerCAmelCase__  :str						   =					PRETRAINED_POSITIONAL_EMBEDDINGS_SIZES
       lowerCAmelCase__  :List[Any]						   =					BlenderbotSmallTokenizer



       def __init__(				self     ,UpperCAmelCase_=None     ,UpperCAmelCase_=None     ,UpperCAmelCase_="<|endoftext|>"     ,UpperCAmelCase_="<|endoftext|>"     ,UpperCAmelCase_="<|endoftext|>"     ,UpperCAmelCase_=False     ,UpperCAmelCase_=True     ,**UpperCAmelCase_     ,)  ->							Optional[Any]:
           super().__init__(
               ByteLevelBPETokenizer(
                   vocab=UpperCAmelCase_     ,merges=UpperCAmelCase_     ,add_prefix_space=UpperCAmelCase_     ,trim_offsets=UpperCAmelCase_     ,)     ,bos_token=UpperCAmelCase_     ,eos_token=UpperCAmelCase_     ,unk_token=UpperCAmelCase_     ,**UpperCAmelCase_     ,)
           lowercase__		       =						add_prefix_space



       def 							_a      (				self     ,UpperCAmelCase_     ,UpperCAmelCase_=None      )  ->							Optional[int]:
           lowercase__		       =						[self.bos_token_id] + token_ids_a + [self.eos_token_id]
           if token_ids_a is None:
               return output

           return output + [self.eos_token_id] + token_ids_a + [self.eos_token_id]







       def 							_a      (				self     ,UpperCAmelCase_     ,UpperCAmelCase_ = None      )  ->							List[int]:
           lowercase__		       =						[self.sep_token_id]
           lowercase__		       =						[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 + sep + token_ids_a + sep      ) * [0]




