

'''simple docstring'''


lowerCAmelCase__      				=			10**8







def     SCREAMING_SNAKE_CASE(	UpperCamelCase	)     ->     bool:
	if n % 1_0 == 0:
		return False
	UpperCAmelCase_		:   Union[str, Any]													=       str(UpperCamelCase	)
	return s == s[::-1]







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

	return sum(UpperCamelCase	)


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









'''simple docstring'''


def     SCREAMING_SNAKE_CASE(	UpperCamelCase	)     ->     int:
	if not isinstance(UpperCamelCase ,UpperCamelCase	):
		raise TypeError('recursive_lucas_number accepts only integer arguments.'	)
	if n_th_number == 0:
		return 2
	if n_th_number == 1:
		return 1

	return recursive_lucas_number(n_th_number - 1	) + recursive_lucas_number(
	    n_th_number - 2	)







def     SCREAMING_SNAKE_CASE(	UpperCamelCase	)     ->     int:
	if not isinstance(UpperCamelCase ,UpperCamelCase	):
		raise TypeError('dynamic_lucas_number accepts only integer arguments.'	)
	UpperCAmelCase_						,     UpperCAmelCase_		:   List[str]													=       2, 1
	for _ in range(UpperCamelCase	):
		UpperCAmelCase_						,     UpperCAmelCase_		:   Dict													=       b, a + b
	return a


if __name__ == "__main__":
						from doctest import testmod

						testmod()
						lowerCAmelCase__      				=			int(input("Enter the number of terms in lucas series:\n").strip())
						print("Using recursive function to calculate lucas series:")
						print(" ".join(str(recursive_lucas_number(i)) for i in range(n)))
						print("\nUsing dynamic function to calculate lucas series:")
						print(" ".join(str(dynamic_lucas_number(i)) for i in range(n)))






