


from math import sqrt


def 		lowercase_  (     _UpperCamelCase  ):


			'''simple docstring'''







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


def 		lowercase_  (     _UpperCamelCase = 1_00_00  ):


			'''simple docstring'''







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


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








import unittest

from diffusers import FlaxAutoencoderKL
from diffusers.utils import is_flax_available
from diffusers.utils.testing_utils import require_flax

from .test_modeling_common_flax import FlaxModelTesterMixin


if is_flax_available():
	import jax
@require_flax
class 	lowerCamelCase_       (				lowerCAmelCase__     ,     unittest.TestCase				):



					'''simple docstring'''







					__UpperCAmelCase            =				FlaxAutoencoderKL






					@property
					def A      (				self						)   ->			Optional[int]:







								'''simple docstring'''

								__lowercase 					=   4
								__lowercase 					=   3
								__lowercase 					=   (3_2, 3_2)

								__lowercase 					=   jax.random.PRNGKey(0						)
								__lowercase 					=   jax.random.uniform(snake_case_ ,       ((batch_size, num_channels) + sizes)						)

								return {"sample": image, "prng_key": prng_key}






					def A      (				self						)   ->			Any:







								'''simple docstring'''

								__lowercase 					=   {
								    '''block_out_channels''': [3_2, 6_4],
								    '''in_channels''': 3,
								    '''out_channels''': 3,
								    '''down_block_types''': ['''DownEncoderBlock2D''', '''DownEncoderBlock2D'''],
								    '''up_block_types''': ['''UpDecoderBlock2D''', '''UpDecoderBlock2D'''],
								    '''latent_channels''': 4,
								}
								__lowercase 					=   self.dummy_input
								return init_dict, inputs_dict


