



from __future__ import annotations

from collections.abc import Iterator






class      UpperCamelCase    :



	def __init__(       self			,	UpperCAmelCase__		):
							A__							=       value
							A__							=       None
							A__							=       None






class      UpperCamelCase    :



	def __init__(       self			,	UpperCAmelCase__		):
							A__							=       tree



	def 			__A							(       self			,	UpperCAmelCase__		):
							if node is None:
													return 0
							return node.value + (
							    self.depth_first_search(node.left		) + self.depth_first_search(node.right		)
							)



	def __iter__(       self		):
							yield self.depth_first_search(self.tree		)


if __name__ == "__main__":
						import doctest

						doctest.testmod()










def  UpperCamelCase						(       _A			:				int			,							_A			:				int    )->       int:





						"""simple docstring"""





						return int((input_a, input_a).count(0    ) == 0    )
def  UpperCamelCase						(       )->       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))





