





"""simple docstring"""





def 		lowerCAmelCase_	(  lowercase_   :							list[int]		):

 '''simple docstring'''






 __SCREAMING_SNAKE_CASE :			List[Any]												=       len(lowercase_		)
 if n in (0, 1):
  return 0
 return sum(query * (n - i - 1) for i, query in enumerate(sorted(lowercase_		)		)		)


if __name__ == "__main__":
    import doctest

    doctest.testmod()



"""simple docstring"""


def     _lowerCamelCase(__UpperCamelCase = 4000000       )				-> int:
	_lowerCAmelCase								=1
	_lowerCAmelCase								=2
	_lowerCAmelCase								=0
	while j <= n:
		if j % 2 == 0:
			total += j
		_lowerCAmelCase						,							_lowerCAmelCase								=j, i + j

	return total


if __name__ == "__main__":
			print(F"""{solution() = }""")



