1009:N!

Time/Memory Limit:1000 MS/32768 K
Submitted: 2393 Accepted: 1610

 Problem Description

Given an integer N(1 ≤ N ≤ 12), your task is to calculate N!

 Input

One N in one line, process to the end of file.

 Output

For each N, output N! in one line.

 Sample Input

1
2
3

 Sample Output

1
2
6

 Source

ZSACM 10级新生网络赛第一场

 Recommend

zh