
'''simple docstring'''



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_SCREAMING_SNAKE_CASE   =      {
    "configuration_nllb_moe": [
        "NLLB_MOE_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "NllbMoeConfig",
    ]
}

try:
	if not is_torch_available():
		raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
	pass
else:
	_SCREAMING_SNAKE_CASE   =      [
	    "NLLB_MOE_PRETRAINED_MODEL_ARCHIVE_LIST",
	    "NllbMoeForConditionalGeneration",
	    "NllbMoeModel",
	    "NllbMoePreTrainedModel",
	    "NllbMoeTop2Router",
	    "NllbMoeSparseMLP",
	]


if TYPE_CHECKING:
	from .configuration_nllb_moe import (
	    NLLB_MOE_PRETRAINED_CONFIG_ARCHIVE_MAP,
	    NllbMoeConfig,
	)

	try:
		if not is_torch_available():
			raise OptionalDependencyNotAvailable()
	except OptionalDependencyNotAvailable:
		pass
	else:
		from .modeling_nllb_moe import (
		    NLLB_MOE_PRETRAINED_MODEL_ARCHIVE_LIST,
		    NllbMoeForConditionalGeneration,
		    NllbMoeModel,
		    NllbMoePreTrainedModel,
		    NllbMoeSparseMLP,
		    NllbMoeTopaRouter,
		)


else:
	import sys

	_SCREAMING_SNAKE_CASE   =      _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)












'''simple docstring'''



from math import sqrt




def 				_lowerCAmelCase  (			lowerCamelCase_     :					int			):
			__lowercase			  =							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 				_lowerCAmelCase  (			lowerCamelCase_     :					int = 1_0_0_0_0			):
			__lowercase			  =							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())))





