

def 							__SCREAMING_SNAKE_CASE     (   a__    :   Dict       )					->				Optional[Any]:
	__A :			Optional[Any]		    =			len(a__       )
	for i in range(length - 1       ):
		__A :			Optional[Any]		    =			i
		for k in range(i + 1			,a__       ):
			if collection[k] < collection[least]:
				__A :			Dict		    =			k
		if least != i:
			__A    ,				__A :			str		    =			(collection[i], collection[least])
	return collection


if __name__ == "__main__":
			UpperCAmelCase_							:					Any		 =   input('''Enter numbers separated by a comma:\n''').strip()
			UpperCAmelCase_							:					Optional[Any]		 =   [int(item) for item in user_input.split(''',''')]
			print(selection_sort(unsorted))








class      lowerCamelCase_      :




	def __init__(     self						:     Dict					,      __A						:     Tuple					,      __A						:     Optional[int]					,      __A						:     int							):
		__A :			List[str]		    =			name
		__A :			Optional[int]		    =			value
		__A :			Optional[Any]		    =			weight




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




	def        lowerCAmelCase_       (     self						:     Union[str, Any]							):
		return self.value




	def        lowerCAmelCase_       (     self						:     str							):
		return self.name




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




	def        lowerCAmelCase_       (     self						:     Dict							):
		return self.value / self.weight






def 							__SCREAMING_SNAKE_CASE     (   a__    :   str			,a__    :   Optional[int]			,a__    :   Union[str, Any]       )					->				int:
	__A :			Tuple		    =			[]
	for i in range(len(a__       )       ):
		menu.append(Things(name[i]			,value[i]			,weight[i]       )       )
	return menu
def 							__SCREAMING_SNAKE_CASE     (   a__    :   Tuple			,a__    :   Any			,a__    :   Optional[int]       )					->				Tuple:
	__A :			Optional[int]		    =			sorted(a__			,key=a__			,reverse=a__       )
	__A :			Optional[Any]		    =			[]
	__A    ,				__A :			Tuple		    =			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 							__SCREAMING_SNAKE_CASE     (   )					->				List[Any]:
	pass


if __name__ == "__main__":
			import doctest

			doctest.testmod()





