LearnPy Hub
← Loops problems
Medium

Factorial

Print n! (n factorial). 0! is 1. Python integers can grow as large as you need.

Input

One integer 0 ≤ n ≤ 20.

Output

n!

Sample 1

Input
5
Output
120

Sample 2

Input
0
Output
1
solution.py
Output appears here
Hints
Factorial · Python practice problem · LearnPy Hub