






'''simple docstring'''
import math






class        __SCREAMING_SNAKE_CASE :




 def __init__( self		:							str   , __lowercase		:							Union[str, Any]=0 )		->  Optional[int]:  # a graph with Node 0,1,...,N-1
       SCREAMING_SNAKE_CASE__       :			List[Any]													=n
       SCREAMING_SNAKE_CASE__       :			int													=[
           [math.inf for j in range(0   , __lowercase )] for i in range(0   , __lowercase )
       ]  # adjacency matrix for weight
       SCREAMING_SNAKE_CASE__       :			List[Any]													=[
           [math.inf for j in range(0   , __lowercase )] for i in range(0   , __lowercase )
       ]  # dp[i][j] stores minimum distance from i to j




 def        __magic_name__		( self		:							Union[str, Any]   , __lowercase		:							List[str]   , __lowercase		:							str   , __lowercase		:							Tuple )		->  int:
       SCREAMING_SNAKE_CASE__       :			Dict													=w




 def        __magic_name__		( self		:							List[Any] )		->  Optional[int]:
       for k in range(0   , self.n ):
             for i in range(0   , self.n ):
                   for j in range(0   , self.n ):
                         SCREAMING_SNAKE_CASE__       :			List[str]													=min(self.dp[i][j]   , self.dp[i][k] + self.dp[k][j] )




 def        __magic_name__		( self		:							str   , __lowercase		:							str   , __lowercase		:							Tuple )		->  Dict:
       return self.dp[u][v]


if __name__ == "__main__":
  a_					=	Graph(5)
  graph.add_edge(0, 2, 9)
  graph.add_edge(0, 4, 1_0)
  graph.add_edge(1, 3, 5)
  graph.add_edge(2, 3, 7)
  graph.add_edge(3, 0, 1_0)
  graph.add_edge(3, 1, 2)
  graph.add_edge(3, 2, 1)
  graph.add_edge(3, 4, 6)
  graph.add_edge(4, 1, 3)
  graph.add_edge(4, 2, 4)
  graph.add_edge(4, 3, 9)
  graph.floyd_warshall()
  graph.show_min(1, 4)
  graph.show_min(0, 3)







'''simple docstring'''
from math import factorial





def 	_a(					UpperCamelCase__			:  int = 1_0_0							):




      '''simple docstring'''






      return sum(int(UpperCamelCase__							) for x in str(factorial(UpperCamelCase__							)							)							)


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