

def 	__snake_case		(      __UpperCamelCase     :      Dict = 1000  ):



      """simple docstring"""

      A_		   =							-1
      A_		   =							0
      for a in range(1							,n // 3  ):
            # Solving the two equations a**2+b**2=c**2 and a+b+c=N eliminating c
            A_		   =							(n * n - 2 * a * n) // (2 * n - 2 * a)
            A_		   =							n - a - b
            if c * c == (a * a + b * b):
                  A_		   =							a * b * c
                  if candidate >= product:
                        A_		   =							candidate
      return product


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

from functools import lru_cache



@lru_cache
def        UpperCamelCase    (							lowerCAmelCase__		):
					'''simple docstring'''
					if num < 0:
										raise ValueError('''Number should not be negative.'''		)

					return 1 if num in (0, 1) else num * factorial(num - 1		)


if __name__ == "__main__":
							import doctest

							doctest.testmod()




