



def    lowerCAmelCase_  (lowerCAmelCase__:		int = 9_9_8_0_0_1     ):





			"""simple docstring"""


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


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











import decimal







def    lowerCAmelCase_  ():





			"""simple docstring"""


			UpperCAmelCase_:		Union[str, Any]       			=    0
			UpperCAmelCase_:		Optional[Any]       			=    decimal.Context(prec=1_0_5     )
			for i in range(2		,	1_0_0     ):
						UpperCAmelCase_:		str       			=    decimal.Decimal(lowerCAmelCase__     )
						UpperCAmelCase_:		Any       			=    number.sqrt(lowerCAmelCase__     )
						if len(str(lowerCAmelCase__     )     ) > 1:
									answer += int(str(lowerCAmelCase__     )[0]     )
									UpperCAmelCase_:		str       			=    str(lowerCAmelCase__     )[2:1_0_1]
									answer += sum(int(lowerCAmelCase__     ) for x in sqrt_number_str     )
			return answer


if __name__ == "__main__":
	import doctest

	doctest.testmod()
	print(F'''{solution() = }''')






