class       snake_case					:




		def __init__(      self     :	Tuple     , a_     :	int				)->       None:




							"""simple docstring"""
							SCREAMING_SNAKE_CASE__				:				Any			=		size
							SCREAMING_SNAKE_CASE__				:				Dict			=		[0] * size
							SCREAMING_SNAKE_CASE__				:				Union[str, Any]			=		[0] * size




		@staticmethod
		def 	__lowercase(      a_     :	int				)->       int:




							"""simple docstring"""
							return index | (index + 1)




		@staticmethod
		def 	__lowercase(      a_     :	int				)->       int:




							"""simple docstring"""
							return (index & (index + 1)) - 1




		def 	__lowercase(      self     :	List[str]     , a_     :	int     , a_     :	int				)->       None:




							"""simple docstring"""
							SCREAMING_SNAKE_CASE__				:				str			=		value
							while index < self.size:
												SCREAMING_SNAKE_CASE__				:				Tuple			=		self.get_prev(a_				) + 1
												if current_left_border == index:
																	SCREAMING_SNAKE_CASE__				:				str			=		value
												else:
																	SCREAMING_SNAKE_CASE__				:				Any			=		max(a_     , a_     , a_				)
												SCREAMING_SNAKE_CASE__				:				Union[str, Any]			=		self.get_next(a_				)




		def 	__lowercase(      self     :	int     , a_     :	int     , a_     :	int				)->       int:




							"""simple docstring"""
							right -= 1  # Because of right is exclusive
							SCREAMING_SNAKE_CASE__				:				Dict			=		0
							while left <= right:
												SCREAMING_SNAKE_CASE__				:				Tuple			=		self.get_prev(a_				)
												if left <= current_left:
																	SCREAMING_SNAKE_CASE__				:				List[str]			=		max(a_     , self.tree[right]				)
																	SCREAMING_SNAKE_CASE__				:				Optional[int]			=		current_left
												else:
																	SCREAMING_SNAKE_CASE__				:				Any			=		max(a_     , self.arr[right]				)
																	right -= 1
							return result


if __name__ == "__main__":
						import doctest

						doctest.testmod()




def     _a				(      lowercase__  :			int     ,  lowercase__  :			int ):







     '''simple docstring'''


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







def     _a				(      ):







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



