def 					_snake_case	(  ):
					_UpperCamelCase			     =     0
					for i in range(1  ,     1001						):
										total += i**i
					return str(__snake_case						)[-10:]


if __name__ == "__main__":
					print(solution())

def 					_snake_case	(  __snake_case = 100						):
					_UpperCamelCase			     =     (n * (n + 1) // 2) ** 2
					_UpperCamelCase			     =     n * (n + 1) * (2 * n + 1) // 6
					return sum_cubes - sum_squares


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