
"""simple docstring"""




from math import sqrt




def 			_lowerCAmelCase		(		_UpperCamelCase    ):






  """simple docstring"""



  _lowercase:      Union[str, Any]   			=  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 = 10_000    ):






  """simple docstring"""



  _lowercase:      List[str]   			=  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())))


"""simple docstring"""




from cva import destroyAllWindows, imread, imshow, waitKey




def 			_lowerCAmelCase		(		_UpperCamelCase    ):






  """simple docstring"""



  _lowercase			,					_lowercase:      Union[str, Any]   			=  img.shape[0], img.shape[1]

  # converting each pixel's color to its negative
  for i in range(_UpperCamelCase    ):
    for j in range(_UpperCamelCase    ):
      _lowercase:      Dict   			=  [255, 255, 255] - img[i][j]

  return img


if __name__ == "__main__":
  # read original image
  A__ :       Optional[Any]				= imread('image_data/lena.jpg', 1)

  # convert to its negative
  A__ :       Dict				= convert_to_negative(img)

  # show result image
  imshow('negative of original image', img)
  waitKey(0)
  destroyAllWindows()
