#K37752. Compute Factorial

    ID: 26046 Type: Default 1000ms 256MiB

Compute Factorial

Compute Factorial

Given a non-negative integer n, compute its factorial. The factorial of a non-negative integer n (denoted by \(n!\)) is defined as:

\(n! = \prod_{i=1}^{n} i\) with \(0! = 1\).

Your task is to read n from the standard input, compute \(n!\), and output the result to the standard output.

inputFormat

The input consists of a single non-negative integer n given via standard input.

outputFormat

Output a single line containing the factorial of n.

## sample
0
1