




'''simple docstring'''





def 			__a			(     _UpperCamelCase:					List[Any] = 998_001					)		->				Tuple:

					"""simple docstring"""




					for number in range(n - 1      ,		9_999      ,		-1					):
										_snake_case							=   str(_A					)

										# checks whether 'str_number' is a palindrome.
										if str_number == str_number[::-1]:
															_snake_case							=   999

															# if 'number' is a product of two 3-digit numbers
															# then number is the answer otherwise fetch next number.
															while divisor != 99:
																				if (number % divisor == 0) and (len(str(number // divisor					)					) == 3.0):
																									return number
																				divisor -= 1
					raise ValueError("That number is larger than our acceptable range."					)


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








'''simple docstring'''





UpperCamelCase_		:    Optional[Any]									=		'''
# Diffusers installation
! pip install diffusers transformers datasets accelerate
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/diffusers.git
'''

UpperCamelCase_		:    List[Any]									=		[{'''type''': '''code''', '''content''': INSTALL_CONTENT}]


