12770 - GEC1506 Factorials   

Description

We have introduced the loop and condition concept in our course, you can use these concepts to finish the following task.

Calculate N! = 1×2×...×(N-1)×N

Note that

  1. You DO NOT need to consider the number exceed the range of integer or long long data type. 
  2. 0! = 1

 

Input

A line of text with a number.

Output

A line with the factorial result.

Sample Input  Download

Sample Output  Download

Tags




Discuss