1511: 【函数】求和求阶乘

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:117 Solved:3

Description

输入正整数n,输出1到n之间数字的和及n!。

Input

一行,包含一个整数n。

Output

输出共两行,第一行为1到n的和;

                        第二行为n的阶乘。

Sample Input Copy

4

Sample Output Copy

10
24