






"""simple docstring"""


def  __snake_case       (   UpperCamelCase__	)      ->		Tuple:







		"""simple docstring"""





		A					       = []
		for data in source_data:
				for i, el in enumerate(UpperCamelCase__	):
						if len(UpperCamelCase__	) < i + 1:
								data_lists.append([]	)
						data_lists[i].append(float(UpperCamelCase__	)	)
		return data_lists







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__	)      ->		Tuple:







		"""simple docstring"""





		A					       = []
		for dlist, weight in zip(UpperCamelCase__ ,			UpperCamelCase__	):
				A					       = min(UpperCamelCase__	)
				A					       = max(UpperCamelCase__	)

				A					       = []
				# for weight 0 score is 1 - actual score
				if weight == 0:
						for item in dlist:
								try:
										score.append(1 - ((item - mind) / (maxd - mind))	)
								except ZeroDivisionError:
										score.append(1	)

				elif weight == 1:
						for item in dlist:
								try:
										score.append((item - mind) / (maxd - mind)	)
								except ZeroDivisionError:
										score.append(0	)

								# weight not 0 or 1
				else:
						A					       = f'Invalid weight of {weight:f} provided'
						raise ValueError(UpperCamelCase__	)

				score_lists.append(UpperCamelCase__	)

		return score_lists







def  __snake_case       (   UpperCamelCase__	)      ->		Union[str, Any]:







		"""simple docstring"""





		A					       = [0 for i in range(len(score_lists[0]	)	)]

		for slist in score_lists:
				for j, ele in enumerate(UpperCamelCase__	):
						A					       = final_scores[j] + ele

		return final_scores







def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__	)      ->		List[str]:







		"""simple docstring"""





		A					       = get_data(UpperCamelCase__	)
		A					       = calculate_each_score(UpperCamelCase__ ,			UpperCamelCase__	)
		A					       = generate_final_scores(UpperCamelCase__	)

		# append scores to source data
		for i, ele in enumerate(UpperCamelCase__	):
				source_data[i].append(UpperCamelCase__	)

		return source_data









"""simple docstring"""


from math import sqrt







def  __snake_case       (   UpperCamelCase__	)      ->		int:







		"""simple docstring"""





		A					       = 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  __snake_case       (   UpperCamelCase__ = 10000	)      ->		int:







		"""simple docstring"""





		A					       = 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())))





