





'''simple docstring'''







from collections import Counter
from functools import total_ordering

from data_structures.heap.heap import Heap


@total_ordering
class        __a   :

							def __init__(				self				:  Union[str, Any]							,  __magic_name__				:  str							,  __magic_name__				:  int )       ->							None:







													"""simple docstring"""
													UpperCAmelCase_      :   Union[str, Any]      =	word
													UpperCAmelCase_      :   Optional[Any]      =	count

							def __eq__(				self				:  Dict							,  __magic_name__				:  object )       ->							bool:







													"""simple docstring"""
													if not isinstance(__magic_name__							,  __magic_name__ ):
																			return NotImplemented
													return self.count == other.count



							def __lt__(				self				:  List[str]							,  __magic_name__				:  object )       ->							bool:







													"""simple docstring"""
													if not isinstance(__magic_name__							,  __magic_name__ ):
																			return NotImplemented
													return self.count < other.count





def 							lowerCamelCase_   (	SCREAMING_SNAKE_CASE__   :      list[str],      SCREAMING_SNAKE_CASE__   :      int )			->						list[str]:
						UpperCAmelCase_      :   Heap[WordCount]      =	Heap()
						UpperCAmelCase_      :   int      =	Counter(SCREAMING_SNAKE_CASE__ )
						heap.build_max_heap(
						    [WordCount(SCREAMING_SNAKE_CASE__,      SCREAMING_SNAKE_CASE__ ) for word, count in count_by_word.items()] )
						return [heap.extract_max().word for _ in range(min(SCREAMING_SNAKE_CASE__,      len(SCREAMING_SNAKE_CASE__ ) ) )]


if __name__ == "__main__":
					import doctest

					doctest.testmod()






"""simple docstring"""







def     __UpperCAmelCase							(       UpperCAmelCase_       :							int = 1_00    )				->     int:

	'''simple docstring'''





	__snake_case     :				Any 						=					1
	__snake_case     :				Tuple 						=					0
	for i in range(1     ,				num + 1    ):
		fact *= i

	for j in str(UpperCAmelCase_    ):
		result += int(UpperCAmelCase_    )

	return result


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





