






'''simple docstring'''






def 							_SCREAMING_SNAKE_CASE	(					A	:							int = 99_80_01	)     ->			int:







   """simple docstring"""
   __snake_case					:   int  				=			0
   for i in range(9_99	,		99	,		-1	):  # 3 digit numbers range from 999 down to 100
      for j in range(9_99	,		99	,		-1	):
         __snake_case					:   Union[str, Any]  				=			str(i * j	)
         if product_string == product_string[::-1] and i * j < n:
            __snake_case					:   Tuple  				=			max(A	,		i * j	)
   return answer


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







'''simple docstring'''






def 							_SCREAMING_SNAKE_CASE	(					)     ->			int:







   """simple docstring"""

   for a in range(3_00	):
      for b in range(a + 1	,		4_00	):
         for c in range(b + 1	,		5_00	):
            if (a + b + c) == 10_00 and (a**2) + (b**2) == (c**2):
               return a * b * c

   return -1




def 							_SCREAMING_SNAKE_CASE	(					)     ->			int:







   """simple docstring"""

   for a in range(3_00	):
      for b in range(4_00	):
         __snake_case					:   Optional[Any]  				=			10_00 - a - b
         if a < b < c and (a**2) + (b**2) == (c**2):
            return a * b * c

   return -1




def 							_SCREAMING_SNAKE_CASE	(					)     ->			None:







   """simple docstring"""
   import timeit

   print(
       timeit.timeit('solution()'	,		setup='from __main__ import solution'	,		number=10_00	)	)
   print(
       timeit.timeit(
           'solution_fast()'	,		setup='from __main__ import solution_fast'	,		number=10_00	)	)


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