import numpy as np
from cva import destroyAllWindows, imread, imshow, waitKey







class 			lowercase    :




				def __init__( self				,       snake_case				,       snake_case				,       snake_case	):
											if dst_width < 0 or dst_height < 0:
																		raise ValueError('Destination width/height should be > 0'	)

											snake_case_          =   img
											snake_case_          =   img.shape[1]
											snake_case_          =   img.shape[0]
											snake_case_          =   dst_width
											snake_case_          =   dst_height

											snake_case_          =   self.src_w / self.dst_w
											snake_case_          =   self.src_h / self.dst_h

											snake_case_          =   snake_case_          =   (
											    np.ones((self.dst_h, self.dst_w, 3)				,       np.uinta	) * 255
											)




				def    a							( self	):
											for i in range(self.dst_h	):
																		for j in range(self.dst_w	):
																									snake_case_          =   self.img[self.get_y(snake_case	)][self.get_x(snake_case	)]




				def    a							( self				,       snake_case	):
											return int(self.ratio_x * x	)




				def    a							( self				,       snake_case	):
											return int(self.ratio_y * y	)


if __name__ == "__main__":
					_UpperCAmelCase		:       Optional[int]						    =	800, 600
					_UpperCAmelCase		:       List[Any]						    =	imread("""image_data/lena.jpg""", 1)
					_UpperCAmelCase		:       str						    =	NearestNeighbour(im, dst_w, dst_h)
					n.process()

					imshow(
					    F'''Image resized from: {im.shape[1]}x{im.shape[0]} to {dst_w}x{dst_h}''', n.output
					)
					waitKey(0)
					destroyAllWindows()







from math import sqrt





def  __lowerCamelCase     (			UpperCamelCase__				):







							'''simple docstring'''






							snake_case_          =   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  __lowerCamelCase     (			UpperCamelCase__ = 10000				):







							'''simple docstring'''






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




