



'''simple docstring'''
_UpperCamelCase											=			10**8


def   lowercase_	(   lowerCAmelCase__	:  int ):

			"""simple docstring"""





			if n % 10 == 0:
						return False
			__UpperCAmelCase   :      Tuple										=     str(lowerCAmelCase__ )
			return s == s[::-1]


def   lowercase_	(   ):

			"""simple docstring"""





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

			return sum(lowerCAmelCase__ )


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









'''simple docstring'''
from __future__ import annotations

from typing import Any



class _A  :





		def __init__(     self ,       __UpperCAmelCase ,       __UpperCAmelCase				)       ->     None:  # noqa: A002

					'''simple docstring'''
					__UpperCAmelCase   :      Tuple										=     item
					__UpperCAmelCase   :      str										=     next



class _A  :





		def __init__(     self				)       ->     None:

					'''simple docstring'''
					__UpperCAmelCase   :      Node | None										=     None
					__UpperCAmelCase   :      Optional[int]										=     0





		def 							__A       (     self ,       __UpperCAmelCase				)       ->     None:

					'''simple docstring'''
					__UpperCAmelCase   :      Optional[Any]										=     Node(__UpperCAmelCase ,       self.head				)
					self.size += 1





		def 							__A       (     self				)       ->     Any:

					'''simple docstring'''
					# Switched 'self.is_empty()' to 'self.head is None'
					# because mypy was considering the possibility that 'self.head'
					# can be None in below else part and giving error
					if self.head is None:
								return None
					else:
								__UpperCAmelCase   :      str										=     self.head.item
								__UpperCAmelCase   :      Tuple										=     self.head.next
								self.size -= 1
								return item





		def 							__A       (     self				)       ->     bool:

					'''simple docstring'''
					return self.head is None





		def __str__(     self				)       ->     str:

					'''simple docstring'''
					if self.is_empty():
								return ""
					else:
								__UpperCAmelCase   :      Union[str, Any]										=     self.head
								__UpperCAmelCase   :      List[Any]										=     """"""
								__UpperCAmelCase   :      list[str]										=     []
								while iterate:
											item_list.append(str(iterate.item				)				)
											__UpperCAmelCase   :      Any										=     iterate.next

								__UpperCAmelCase   :      Dict										=     """ --> """.join(__UpperCAmelCase				)

								return item_str





		def __len__(     self				)       ->     int:

					'''simple docstring'''
					return self.size




