



'''simple docstring'''



a__						:			Tuple										=			1_0**8







def _lowercase   (  __A       ):



 '''simple docstring'''



 if n % 10 == 0:
  return False
 __UpperCamelCase				      =  str(__A       )
 return s == s[::-1]







def _lowercase   (  ):



 '''simple docstring'''



 __UpperCamelCase				      =  set()
 __UpperCamelCase				      =  1
 __UpperCamelCase				      =  5
 while sum_squares < LIMIT:
  __UpperCamelCase				      =  first_square + 1
  while sum_squares < LIMIT:
   if is_palindrome(__A       ):
    answer.add(__A       )
   last_square += 1
   sum_squares += last_square**2
  first_square += 1
  __UpperCamelCase				      =  first_square**2 + (first_square + 1) ** 2

 return sum(__A       )


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










'''simple docstring'''



def _lowercase   (  __A							,__A       ):



 '''simple docstring'''



 __UpperCamelCase				      =  1
 while b > 0:
  if b & 1:
   res *= a

  a *= a
  b >>= 1

 return res







def _lowercase   (  __A							,__A							,__A       ):



 '''simple docstring'''



 __UpperCamelCase				      =  1
 while b > 0:
  if b & 1:
   __UpperCamelCase				      =  ((res % c) * (a % c)) % c

  a *= a
  b >>= 1

 return res





