ENPRIME - Prime Number

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

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

hide comments
2023-02-12 20:16:52 Simes
A problem called Prime Number that calculates factorials? Totally makes sense.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.