#K43277. Factorial Computation

    ID: 27274 Type: Default 1000ms 256MiB

Factorial Computation

Factorial Computation

This problem requires you to compute the factorial of a given non-negative integer n. The factorial of n, denoted as \(n!\), is defined as:

\[ n! = \prod_{i=1}^{n} i \]

with the special case \(0! = 1\).

Your task is to read the integer from the standard input and output the value of its factorial.

inputFormat

The input consists of a single line containing an integer \(n\) where \(0 \le n \le 12\).

outputFormat

Output a single line containing the factorial of \(n\). Make sure to handle the case when \(n = 0\) correctly.

## sample
0
1

</p>