"""simple docstring"""
def    lowerCAmelCase__    (			_UpperCamelCase       :				int					)					->				bool:





						"""simple docstring"""






						if not isinstance(_UpperCamelCase ,			_UpperCamelCase					):
												snake_case								=			f"""Input value of [number={number}] must be an integer"""
												raise TypeError(_UpperCamelCase					)
						if number < 0:
												return False
						snake_case								=			number * number
						while number > 0:
												if number % 1_0 != number_square % 1_0:
																		return False
												number //= 1_0
												number_square //= 1_0
						return True


if __name__ == "__main__":
					import doctest

					doctest.testmod()



"""simple docstring"""
def    lowerCAmelCase__    (			_UpperCamelCase       :				int ,			_UpperCamelCase       :				int					)					->				int:





						"""simple docstring"""






						return int((input_a, input_a).count(0					) == 0					)





def    lowerCAmelCase__    (			)					->				None:





						"""simple docstring"""






						assert and_gate(0 ,			0					) == 0
						assert and_gate(0 ,			1					) == 0
						assert and_gate(1 ,			0					) == 0
						assert and_gate(1 ,			1					) == 1


if __name__ == "__main__":
					test_and_gate()
					print(and_gate(1, 0))
					print(and_gate(0, 0))
					print(and_gate(0, 1))
					print(and_gate(1, 1))


