

'''simple docstring'''

def 				A_					(	snake_case = 998001	):
  SCREAMING_SNAKE_CASE:Dict   =   0
  for i in range(999 ,    99 ,    -1	):  # 3 digit numbers range from 999 down to 100
    for j in range(999 ,    99 ,    -1	):
      SCREAMING_SNAKE_CASE:Any   =   str(i * j	)
      if product_string == product_string[::-1] and i * j < n:
        SCREAMING_SNAKE_CASE:Optional[int]   =   max(snake_case ,    i * j	)
  return answer


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









'''simple docstring'''

def 				A_					(	snake_case	):
  return "".join(chr(ord(snake_case	) + 32	) if "A" <= char <= "Z" else char for char in word	)


if __name__ == "__main__":
    from doctest import testmod

    testmod()






