
'''simple docstring'''







from math import gcd
def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				int = 12000							):



						"""simple docstring"""





						lowercase_			:  Dict									= 0
						for d in range(max_d + 1							):
												for n in range(d // 3 + 1   ,   (d + 1) // 2							):
																		if gcd(__SCREAMING_SNAKE_CASE   ,   __SCREAMING_SNAKE_CASE							) == 1:
																								fractions_number += 1
						return fractions_number


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





'''simple docstring'''







def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				int = 998001							):



						"""simple docstring"""





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


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



