Factorielle

La factorielle d'un entier n est définie comme le produit de tous les entiers de 1 jusqu'à n.

n!=1⋅2⋅3⋅...⋅nn! = 1 \cdot 2 \cdot 3 \cdot ... \cdot n

Écrivez un programme qui, étant donné un entier n, affiche le résultat de n! en sortie.

Entrée

Sortie

1

1

5

120

0

1

Constraints

Time limit: 1.6 seconds

Memory limit: 512 MB

Output limit: 1 MB