

'''simple docstring'''






class 			lowercase_	:




  """simple docstring"""




  def __init__(      self   :     Optional[int]					,lowercase__   :     Tuple					,lowercase__   :     int					,lowercase__   :     Dict			):
   __lowercase							  = name
   __lowercase							  = value
   __lowercase							  = weight






  def __repr__(      self   :     Any			):
   return F"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"






  def 					SCREAMING_SNAKE_CASE      (      self   :     Dict			):
   return self.value






  def 					SCREAMING_SNAKE_CASE      (      self   :     Any			):
   return self.name






  def 					SCREAMING_SNAKE_CASE      (      self   :     str			):
   return self.weight






  def 					SCREAMING_SNAKE_CASE      (      self   :     Optional[int]			):
   return self.value / self.weight


def 		_A     (    A__     ,				A__     ,				A__      ):






 """simple docstring"""



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


def 		_A     (    A__     ,				A__     ,				A__      ):






 """simple docstring"""



 __lowercase							  = sorted(A__     ,				key=A__     ,				reverse=A__      )
 __lowercase							  = []
 __lowercase  ,	__lowercase							  = 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()









"""simple docstring"""



def 						lowercase    (				__snake_case				: int	):
		if not isinstance(__snake_case		,					__snake_case	):
				raise ValueError('''Input must be an integer'''	)
		if input_num <= 0:
				raise ValueError('''Input must be positive'''	)
		return sum(
		    divisor for divisor in range(1		,					input_num // 2 + 1	) if input_num % divisor == 0	)


if __name__ == "__main__":
						import doctest

						doctest.testmod()



