
'''simple docstring'''







def       snake_case_	(       __SCREAMING_SNAKE_CASE      :				int = 1000							):



						"""simple docstring"""





						lowercase_			:  int									= 0
						lowercase_			:  Optional[int]									= (n - 1) // 3
						total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
						lowercase_			:  str									= (n - 1) // 5
						total += ((terms) * (10 + (terms - 1) * 5)) // 2
						lowercase_			:  Dict									= (n - 1) // 15
						total -= ((terms) * (30 + (terms - 1) * 15)) // 2
						return total


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() = }""")



