

def 			_UpperCAmelCase							(		a__ = 9_9_8_0_0_1):

			'''simple docstring'''



			a_		:		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):
									a_		:		List[str]				    =				str(i * j)
									if product_string == product_string[::-1] and i * j < n:
												a_		:		str				    =				max(a__       ,					i * j)
			return answer


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





def 			_UpperCAmelCase							(		a__):

			'''simple docstring'''



			return 1 if input_a == 0 else 0


def 			_UpperCAmelCase							(		):

			'''simple docstring'''



			assert not_gate(0) == 1
			assert not_gate(1) == 0


if __name__ == "__main__":
	print(not_gate(0))
	print(not_gate(1))


