
from collections.abc import Iterable
from typing import Generic, TypeVar

__SCREAMING_SNAKE_CASE						       =						TypeVar('_T')





class 							lowerCAmelCase_						(    Generic[_T]							):




			'''simple docstring'''


			def __init__(	self    ,							__UpperCAmelCase = None  ):
										SCREAMING_SNAKE_CASE_	:							Dict											=list(iterable or []  )
										SCREAMING_SNAKE_CASE_	:							List[str]											=[]







			def __len__(	self  ):
										return len(self._stacka  ) + len(self._stacka  )







			def __repr__(	self  ):
										return F"""Queue({tuple(self._stacka[::-1] + self._stacka  )})"""







			def      __lowerCamelCase    (	self    ,							__UpperCAmelCase  ):
										self._stacka.append(lowerCamelCase__  )







			def      __lowerCamelCase    (	self  ):
										SCREAMING_SNAKE_CASE_	:							Tuple											=self._stacka.pop
										SCREAMING_SNAKE_CASE_	:							Any											=self._stacka.append

										if not self._stacka:
																	while self._stacka:
																								stacka_append(stacka_pop()  )

										if not self._stacka:
																	raise IndexError('Queue is empty'  )
										return self._stacka.pop()


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

							testmod()








def 							_lowerCamelCase   (			SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE   ):
      '''simple docstring'''







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







def 							_lowerCamelCase   (			):
      '''simple docstring'''







      assert nand_gate(0		,				0   ) == 1
      assert nand_gate(0		,				1   ) == 1
      assert nand_gate(1		,				0   ) == 1
      assert nand_gate(1		,				1   ) == 0


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





