




def 							_A   (						):
     """simple docstring"""

     for a in range(300			):
          for b in range(a + 1   ,				400			):
               for c in range(b + 1   ,				500			):
                    if (a + b + c) == 1000 and (a**2) + (b**2) == (c**2):
                         return a * b * c

     return -1



def 							_A   (						):
     """simple docstring"""

     for a in range(300			):
          for b in range(400			):
               lowerCAmelCase__		= 1000 - a - b
               if a < b < c and (a**2) + (b**2) == (c**2):
                    return a * b * c

     return -1



def 							_A   (						):
     """simple docstring"""

     import timeit

     print(
         timeit.timeit("solution()"   ,				setup="from __main__ import solution"   ,				number=1000			)			)
     print(
         timeit.timeit(
             "solution_fast()"   ,				setup="from __main__ import solution_fast"   ,				number=1000			)			)


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








"""simple docstring"""







import math
from decimal import Decimal, getcontext





def 						lowercase__(A = 4_000_000						)				->int:




						"""simple docstring"""



						try:
												lowercase__				:      int=       int(A						)
						except (TypeError, ValueError):
												raise TypeError("Parameter n must be int or castable to int."						)
						if n <= 0:
												raise ValueError("Parameter n must be greater than or equal to one."						)
						lowercase__				:      Dict=       100
						lowercase__				:      Optional[Any]=       (Decimal(5						) ** Decimal(0.5						) + 1) / Decimal(2						)

						lowercase__				:      str=       (math.floor(math.log(n * (phi + 2)					,		A						) - 1						) // 3) * 3 + 2
						lowercase__				:      Optional[Any]=       Decimal(round(phi ** Decimal(index + 1						)						)						) / (phi + 2)
						lowercase__				:      Tuple=       num // 2
						return int(A						)


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






