'''simple docstring'''

def        UpperCAmelCase__   (				_lowerCAmelCase    :			int = 99_8001)    ->		int:



						"""simple docstring"""

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


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






'''simple docstring'''

def        UpperCAmelCase__   (				_lowerCAmelCase    :			int = 400_0000)    ->		int:



						"""simple docstring"""

						snake_case :       List[Any]				=    1
						snake_case :       int				=    2
						snake_case :       List[str]				=    0
						while j <= n:
												if j % 2 == 0:
																		total += j
												snake_case				,					snake_case :       Any				=    j, i + j

						return total


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





