#K53432. Factorial Calculation

    ID: 29530 Type: Default 1000ms 256MiB

Factorial Calculation

Factorial Calculation

Given a non-negative integer \(N\) where \(0 \leq N \leq 20\), compute the factorial of \(N\). The factorial, denoted as \(N!\), is defined as:

\(N! = 1 \times 2 \times 3 \times \cdots \times N\)

By convention, \(0! = 1\).

inputFormat

The input consists of a single integer \(N\) on one line.

outputFormat

Output a single integer representing \(N!\).

## sample
0
1