



'''simple docstring'''







def  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE = 99_8001     ):
		SCREAMING_SNAKE_CASE_						:Any										=      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_						:Tuple										=      str(i * j     )
						if product_string == product_string[::-1] and i * j < n:
								SCREAMING_SNAKE_CASE_						:List[Any]										=      max(SCREAMING_SNAKE_CASE ,		i * j     )
		return answer


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




"""simple docstring"""


def   a__			(					__lowercase  ,      __lowercase )						->						Tuple:
				_A       	=      1
				while b > 0:
								if b & 1:
												res *= a

								a *= a
								b >>= 1

				return res






def   a__			(					__lowercase  ,      __lowercase  ,      __lowercase )						->						Optional[Any]:
				_A       	=      1
				while b > 0:
								if b & 1:
												_A       	=      ((res % c) * (a % c)) % c

								a *= a
								b >>= 1

				return res