



from __future__ import annotations







def    _snake_case (       __snake_case					,  __snake_case					,  __snake_case    )     ->     Optional[int]:






      '''simple docstring'''







      if len(__A    ) == 0:
            raise ValueError("find_max() arg is an empty sequence"    )
      if (
          left >= len(__A    )
          or left < -len(__A    )
          or right >= len(__A    )
          or right < -len(__A    )
      ):
            raise IndexError("list index out of range"    )
      if left == right:
            return nums[left]
      UpperCAmelCase_  :	int				      =		(left + right) >> 1  # the middle
      UpperCAmelCase_  :	Optional[int]				      =		find_max(__A					,  __A					,  __A    )  # find max in range[left, mid]
      UpperCAmelCase_  :	str				      =		find_max(__A					,  mid + 1					,  __A    )  # find max in range[mid + 1, right]

      return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
    import doctest

    doctest.testmod(verbose=True)





def    _snake_case (       __snake_case					,  __snake_case    )     ->     int:






      '''simple docstring'''







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







def    _snake_case (       )     ->     None:






      '''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))
