






"""simple docstring"""
from typing import Any

def 				snake_case      (   A__						):
			if not input_list:
						return []
			UpperCAmelCase_     : Optional[int]			     =					[input_list.count(A__						) for value in input_list]
			UpperCAmelCase_     : Optional[int]			     =					max(A__						)  # Gets the maximum count in the input list.
			# Gets values of modes
			return sorted({input_list[i] for i, value in enumerate(A__						) if value == y}						)


if __name__ == "__main__":
			import doctest

			doctest.testmod()











"""simple docstring"""
def 				snake_case      (   A__	,A__	,A__	,A__	,A__						):
			if index == number_of_items:
						return 0
			UpperCAmelCase_     : str			     =					0
			UpperCAmelCase_     : Dict			     =					0
			UpperCAmelCase_     : Tuple			     =					knapsack(A__	,A__	,A__	,A__	,index + 1						)
			if weights[index] <= max_weight:
						UpperCAmelCase_     : Union[str, Any]			     =					values[index] + knapsack(
						    A__	,A__	,A__	,max_weight - weights[index]	,index + 1						)
			return max(A__	,A__						)


if __name__ == "__main__":
			import doctest

			doctest.testmod()



