'''simple docstring'''




class 				a__:


			'''simple docstring'''






			def __init__(   self       ,    __lowerCAmelCase       ,    __lowerCAmelCase       ,    __lowerCAmelCase):




					"""simple docstring"""


					lowerCAmelCase   					=  name
					lowerCAmelCase   					=  value
					lowerCAmelCase   					=  weight



			def __repr__(   self):




					"""simple docstring"""


					return f"{self.__class__.__name__}({self.name}, {self.value}, {self.weight})"



			def 							a_       (   self):




					"""simple docstring"""


					return self.value



			def 							a_       (   self):




					"""simple docstring"""


					return self.name



			def 							a_       (   self):




					"""simple docstring"""


					return self.weight







			def 							a_       (   self):




					"""simple docstring"""


					return self.value / self.weight







def 				snake_case__							(			_A:					str      ,   _A:					Optional[Any]      ,   _A:					Any )    ->	Dict:

		'''simple docstring'''


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






def 				snake_case__							(			_A:					List[str]      ,   _A:					List[Any]      ,   _A:					Dict )    ->	List[Any]:

		'''simple docstring'''


		lowerCAmelCase   					=  sorted(__SCREAMING_SNAKE_CASE      ,   key=__SCREAMING_SNAKE_CASE      ,   reverse=__SCREAMING_SNAKE_CASE )
		lowerCAmelCase   					=  []
		lowerCAmelCase   					=  0.0, 0.0
		for i in range(len(__SCREAMING_SNAKE_CASE ) ):
				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 				snake_case__							(			)    ->	Optional[int]:

		'''simple docstring'''


		pass


if __name__ == "__main__":
						import doctest

						doctest.testmod()







"""simple docstring"""


def     a__    (    __SCREAMING_SNAKE_CASE )	->	int:
		__lowerCAmelCase:       Optional[Any]          =			1
		for i in range(1					, num + 1 ):
				fact *= i
		return fact






def     a__    (    __SCREAMING_SNAKE_CASE )	->	int:
		__lowerCAmelCase:       List[str]          =			0
		while number > 0:
				__lowerCAmelCase:       Any          =			number % 1_0
				sum_of_digits += last_digit
				__lowerCAmelCase:       List[Any]          =			number // 1_0  # Removing the last_digit from the given number
		return sum_of_digits






def     a__    (    __SCREAMING_SNAKE_CASE = 1_0_0 )	->	int:
		__lowerCAmelCase:       Tuple          =			factorial(__SCREAMING_SNAKE_CASE )
		__lowerCAmelCase:       Optional[int]          =			split_and_add(__SCREAMING_SNAKE_CASE )
		return result


if __name__ == "__main__":
			print(solution(int(input("Enter the Number: ").strip())))


