ENPRIME - Prime Number

no tags 

Read an integer X from the input and calculate the factorial of X.

The factorial is a function that multiplies a number for each positive number that precedes it X! = X * (X-1) * (X- 2) * ... * 1

Input

An integer number X.

Output

The factorial of X.

Example

Input:
4

Output:
24

hide comments
Simes: 2023-02-12 20:16:52

A problem called Prime Number that calculates factorials? Totally makes sense.


Added by:giorgio.piccardo
Date:2018-09-20
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:NCSHARP JULIA PYPY3 PYTHON3