





"""simple docstring"""


__magic_name__					:				Union[str, Any]	= 1_0**8

def     UpperCamelCase       (SCREAMING_SNAKE_CASE    ):
						if n % 10 == 0:
												return False
						UpperCamelCase							:		Optional[Any]							      = str(SCREAMING_SNAKE_CASE    )
						return s == s[::-1]

def     UpperCamelCase       ():
						UpperCamelCase							:		List[str]							      = set()
						UpperCamelCase							:		Optional[Any]							      = 1
						UpperCamelCase							:		Union[str, Any]							      = 5
						while sum_squares < LIMIT:
												UpperCamelCase							:		Optional[int]							      = first_square + 1
												while sum_squares < LIMIT:
																		if is_palindrome(SCREAMING_SNAKE_CASE    ):
																								answer.add(SCREAMING_SNAKE_CASE    )
																		last_square += 1
																		sum_squares += last_square**2
												first_square += 1
												UpperCamelCase							:		List[Any]							      = first_square**2 + (first_square + 1) ** 2

						return sum(SCREAMING_SNAKE_CASE    )


if __name__ == "__main__":
		print(solution())










"""simple docstring"""


def     UpperCamelCase       (SCREAMING_SNAKE_CASE = 1000    ):
						UpperCamelCase							:		List[str]							      = []
						UpperCamelCase							:		int							      = []
						UpperCamelCase							:		Dict							      = 3
						UpperCamelCase							:		Dict							      = 5
						UpperCamelCase							:		Optional[int]							      = 1
						while True:
												UpperCamelCase							:		int							      = z * temp
												if result < n:
																		zmulti.append(SCREAMING_SNAKE_CASE    )
																		temp += 1
												else:
																		UpperCamelCase							:		Optional[int]							      = 1
																		break
						while True:
												UpperCamelCase							:		Any							      = x * temp
												if result < n:
																		xmulti.append(SCREAMING_SNAKE_CASE    )
																		temp += 1
												else:
																		break
						UpperCamelCase							:		List[Any]							      = list(set(xmulti + zmulti    )    )
						return sum(SCREAMING_SNAKE_CASE    )


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



