



'''simple docstring'''
def A__   (					):
						return [
						    a * b * (1_0_0_0 - a - b)
						    for a in range(1  ,  9_9_9							)
						    for b in range(UpperCAmelCase_  ,  9_9_9							)
						    if (a * a + b * b == (1_0_0_0 - a - b) ** 2)
						][0]


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







'''simple docstring'''
from __future__ import annotations






def A__   (					UpperCAmelCase_							):
						if not nums:
												return 0
						_UpperCamelCase :		Any			    =       nums[0]
						_UpperCamelCase :		Optional[int]			    =       0
						for num in nums[1:]:
												_UpperCamelCase    ,      _UpperCamelCase :		Optional[Any]			    =       (
												    max_excluding + num,
												    max(UpperCAmelCase_  ,  UpperCAmelCase_							),
												)
						return max(UpperCAmelCase_  ,  UpperCAmelCase_							)


if __name__ == "__main__":
					import doctest

					doctest.testmod()


