



from math import sqrt



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



def __lowerCAmelCase (     SCREAMING_SNAKE_CASE_ = 1_0000  ):
			lowercase__					  =				sum(
			    i
			    for i in range(1						,  SCREAMING_SNAKE_CASE_  )
			    if sum_of_divisors(sum_of_divisors(SCREAMING_SNAKE_CASE_  )  ) == i and sum_of_divisors(SCREAMING_SNAKE_CASE_  ) != 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


lowercase_								=     {
    """configuration_timesformer""": ["""TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""", """TimesformerConfig"""],
}

try:
							if not is_torch_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							lowercase_								=     [
							    """TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
							    """TimesformerModel""",
							    """TimesformerForVideoClassification""",
							    """TimesformerPreTrainedModel""",
							]

if TYPE_CHECKING:
							from .configuration_timesformer import TIMESFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, TimesformerConfig

							try:
														if not is_torch_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .modeling_timesformer import (
														    TIMESFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
														    TimesformerForVideoClassification,
														    TimesformerModel,
														    TimesformerPreTrainedModel,
														)

else:
							import sys

							lowercase_								=     _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




