Problem1769--求阶乘和

1769: 求阶乘和

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

求s=1!+2!+…n!。

Input

输入只有一行,为正整数n(0<n<20)。

Output

输出只有一行,为s的值

Sample Input Copy

2

Sample Output Copy

3

Source/Category