

'''simple docstring'''



def    a__       (  a__      ,    a__						):




     """simple docstring"""


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







def    a__       (  ):




     """simple docstring"""


     assert or_gate(0      ,    0						) == 0
     assert or_gate(0      ,    1						) == 1
     assert or_gate(1      ,    0						) == 1
     assert or_gate(1      ,    1						) == 1


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









'''simple docstring'''



class 						lowerCAmelCase__   :



 """simple docstring"""



 def __init__(		self					:       List[Any]					,							__SCREAMING_SNAKE_CASE					:       int					,							__SCREAMING_SNAKE_CASE					:       Union[str, Any]					,							__SCREAMING_SNAKE_CASE					:       Any			)  -> Tuple:


      """simple docstring"""




      __SCREAMING_SNAKE_CASE     =      name
      __SCREAMING_SNAKE_CASE     =      value
      __SCREAMING_SNAKE_CASE     =      weight
 def __repr__(		self					:       str			)  -> Union[str, Any]:


      """simple docstring"""




      return f'{self.__class__.__name__}({self.name}, {self.value}, {self.weight})'
 def       UpperCAmelCase__		(		self					:       List[Any]			)  -> List[Any]:


      """simple docstring"""




      return self.value
 def       UpperCAmelCase__		(		self					:       Any			)  -> str:


      """simple docstring"""




      return self.name
 def       UpperCAmelCase__		(		self					:       Union[str, Any]			)  -> Union[str, Any]:


      """simple docstring"""




      return self.weight


 def       UpperCAmelCase__		(		self					:       int			)  -> Tuple:


      """simple docstring"""




      return self.value / self.weight







def    a__       (  a__      ,    a__      ,    a__						):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE     =      []
     for i in range(len(a__						)						):
          menu.append(Things(name[i]      ,    value[i]      ,    weight[i]						)						)
     return menu







def    a__       (  a__      ,    a__      ,    a__						):




     """simple docstring"""


     __SCREAMING_SNAKE_CASE     =      sorted(a__      ,    key=a__      ,    reverse=a__						)
     __SCREAMING_SNAKE_CASE     =      []
     __SCREAMING_SNAKE_CASE   ,			__SCREAMING_SNAKE_CASE     =      0.0, 0.0
     for i in range(len(a__						)						):
          if (total_cost + items_copy[i].get_weight()) <= max_cost:
               result.append(items_copy[i]						)
               total_cost += items_copy[i].get_weight()
               total_value += items_copy[i].get_value()
     return (result, total_value)







def    a__       (  ):




     """simple docstring"""




if __name__ == "__main__":
  import doctest

  doctest.testmod()






