





"""simple docstring"""


from math import sqrt

def      UpperCamelCase							(SCREAMING_SNAKE_CASE     ):
						UpperCamelCase				:		Tuple				   =			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      UpperCamelCase							(SCREAMING_SNAKE_CASE = 1_0000     ):
						UpperCamelCase				:		Dict				   =			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"""

import argparse


a							      =     '''docs/source/_static/js/custom.js'''






def 		_snake_case	(   _snake_case				:   Dict				)       ->   Any:






      '''simple docstring'''


      with open(_snake_case							,    encoding='utf-8'							,    newline='\n'				) as f:
            _A     =  f.readlines()
      _A     =  0

      # First let's put the right version
      while not lines[index].startswith('const stableVersion ='				):
            index += 1
      _A     =  F'''const stableVersion = "v{version}"\n'''

      # Then update the dictionary
      while not lines[index].startswith('const versionMapping = {'				):
            index += 1

      # We go until the end
      while not lines[index].startswith('}'				):
            index += 1
      # We add the new version at the end
      lines[index - 1] += F'''    "v{version}": "v{version}",\n'''

      with open(_snake_case							,    'w'							,    encoding='utf-8'							,    newline='\n'				) as f:
            f.writelines(_snake_case				)


if __name__ == "__main__":
       a							      =     argparse.ArgumentParser()
       parser.add_argument('''--version''', help='''Release version.''')
       a							      =     parser.parse_args()
       update_custom_js(args.version)

