


from math import sqrt




def    a   (							A__							)	-> int:




      '''simple docstring'''

      SCREAMING_SNAKE_CASE__       :  List[str]						     =		0
      for i in range(1      ,    int(sqrt(A__							) + 1							)							):
            if n % i == 0 and i != sqrt(A__							):
                  total += i + n // i
            elif i == sqrt(A__							):
                  total += i
      return total - n




def    a   (							A__ = 1_0_0_0_0							)	-> int:




      '''simple docstring'''

      SCREAMING_SNAKE_CASE__       :  Dict						     =		sum(
          i
          for i in range(1      ,    A__							)
          if sum_of_divisors(sum_of_divisors(A__							)							) == i and sum_of_divisors(A__							) != i							)
      return total


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











from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


_lowerCAmelCase	:   Any    =   {
    "configuration_chinese_clip": [
        "CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "ChineseCLIPConfig",
        "ChineseCLIPOnnxConfig",
        "ChineseCLIPTextConfig",
        "ChineseCLIPVisionConfig",
    ],
    "processing_chinese_clip": ["ChineseCLIPProcessor"],
}

try:
	if not is_vision_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	_lowerCAmelCase	:   str    =   ["ChineseCLIPFeatureExtractor"]
	_lowerCAmelCase	:   Any    =   ["ChineseCLIPImageProcessor"]

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	_lowerCAmelCase	:   Optional[int]    =   [
	    "CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST",
	    "ChineseCLIPModel",
	    "ChineseCLIPPreTrainedModel",
	    "ChineseCLIPTextModel",
	    "ChineseCLIPVisionModel",
	]

if TYPE_CHECKING:
	from .configuration_chinese_clip import (
	    CHINESE_CLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
	    ChineseCLIPConfig,
	    ChineseCLIPOnnxConfig,
	    ChineseCLIPTextConfig,
	    ChineseCLIPVisionConfig,
	)
	from .processing_chinese_clip import ChineseCLIPProcessor

	try:
		if not is_vision_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .feature_extraction_chinese_clip import ChineseCLIPFeatureExtractor, ChineseCLIPImageProcessor

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_chinese_clip import (
		    CHINESE_CLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
		    ChineseCLIPModel,
		    ChineseCLIPPreTrainedModel,
		    ChineseCLIPTextModel,
		    ChineseCLIPVisionModel,
		)

else:
	import sys

	_lowerCAmelCase	:   Any    =   _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
