300330: CF64A. Factorial
Memory Limit:64 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
A. Factorialtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard output
Print the factorial of the given integer number n. The factorial of n is equal to 1·2·...·n.
InputThe only line contains n (1 ≤ n ≤ 10).
OutputPrint the factorial of n.
ExamplesInput3Output
6Input
5Output
120