



'''simple docstring'''



def        UpperCAmelCase (    A	:					List[str]					):
							SCREAMING_SNAKE_CASE       :   int         =      len(A					)
							SCREAMING_SNAKE_CASE       :   Tuple         =      sum(A					)

							SCREAMING_SNAKE_CASE       :   Tuple         =      [[False for x in range(s + 1					)] for y in range(n + 1					)]

							for i in range(1       ,		n + 1					):
														SCREAMING_SNAKE_CASE       :   int         =      True

							for i in range(1       ,		s + 1					):
														SCREAMING_SNAKE_CASE       :   Optional[Any]         =      False

							for i in range(1       ,		n + 1					):
														for j in range(1       ,		s + 1					):
																					SCREAMING_SNAKE_CASE       :   Tuple         =      dp[i][j - 1]

																					if arr[i - 1] <= j:
																												SCREAMING_SNAKE_CASE       :   Tuple         =      dp[i][j] or dp[i - 1][j - arr[i - 1]]

							for j in range(int(s / 2					)       ,		-1       ,		-1					):
														if dp[n][j] is True:
																					SCREAMING_SNAKE_CASE       :   Tuple         =      s - 2 * j
																					break

							return diff









'''simple docstring'''



def        UpperCAmelCase (    A	:					int					):
							if not isinstance(A       ,		A					):
														SCREAMING_SNAKE_CASE       :   List[str]         =      F"""Input value of [number={number}] must be an integer"""
														raise TypeError(A					)
							if number < 0:
														return False
							SCREAMING_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()




