





'''simple docstring'''






def 					_a						(       _lowerCamelCase ) ->				bool:



			"""simple docstring"""


			if not isinstance(_lowerCamelCase    ,	_lowerCamelCase ):
						__snake_case					:      Dict							      =     F'''Input value of [number={number}] must be an integer'''
						raise TypeError(_lowerCamelCase )
			if number < 0:
						return False
			__snake_case					:      List[str]							      =     number * number
			while number > 0:
						if number % 10 != number_square % 10:
									return False
						number //= 10
						number_square //= 10
			return True


if __name__ == "__main__":
	import doctest

	doctest.testmod()









'''simple docstring'''






def 					_a						(       _lowerCamelCase = 100 ) ->				int:



			"""simple docstring"""


			__snake_case					:      Any							      =     n * (n + 1) * (2 * n + 1) / 6
			__snake_case					:      List[Any]							      =     (n * (n + 1) / 2) ** 2
			return int(square_of_sum - sum_of_squares )


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


