Start 2024-01-24 16:30:00

冬令营基础班2024年1.24号 for循环结构

End 2024-01-24 17:30:00
Contest is over.
Now 2024-05-18 15:34:14

A. 计算n的阶乘

Description

自然数n的阶乘写作n!,例如15!=1×2×3×4×…×15,试计算n的阶乘。

Input

输入一个整数n(1<n<21)。

Output

输出n!的结果。

Examples

Input

5

Output

120

Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit