
import enum
import shutil
import sys


__magic_name__       ,      __magic_name__            =  shutil.get_terminal_size()

__magic_name__            =  {'''UP''': '''A''', '''DOWN''': '''B''', '''RIGHT''': '''C''', '''LEFT''': '''D'''}
class 					_SCREAMING_SNAKE_CASE  (      enum.Enum ):
      _A						:		Union[str, Any]    	=     0
      _A						:		List[str]    	=     1





def 	SCREAMING_SNAKE_CASE__    (      __lowerCAmelCase    ,		__lowerCAmelCase=""							):
    sys.stdout.write(str(UpperCAmelCase__							) + end							)
    sys.stdout.flush()





def 	SCREAMING_SNAKE_CASE__    (      __lowerCAmelCase    ,		__lowerCAmelCase    ,		__lowerCAmelCase=""							):
    forceWrite(F"""\u001b[{color}m{content}\u001b[0m"""    ,		UpperCAmelCase__							)





def 	SCREAMING_SNAKE_CASE__    (      ):
    forceWrite("\r"							)





def 	SCREAMING_SNAKE_CASE__    (      __lowerCAmelCase    ,		__lowerCAmelCase							):
    forceWrite(F"""\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}"""							)





def 	SCREAMING_SNAKE_CASE__    (      ):
    forceWrite(" " * TERMINAL_WIDTH							)
    reset_cursor()





def 	SCREAMING_SNAKE_CASE__    (      ):
    reset_cursor()
    forceWrite("-" * TERMINAL_WIDTH							)





from math import factorial





def 	SCREAMING_SNAKE_CASE__    (      __lowerCAmelCase = 100							):
    return sum(int(__lowerCAmelCase							) for x in str(factorial(__lowerCAmelCase							)							)							)


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



