3226: 累计相加(GESP一级)

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

Description

输入一个正整数 n ,求形如 1+(1+2)+(1+2+3)+(1+2+3+4)+...+(1+2+3+4+5+...+) 的值。

Input

输入一个正整数,约定1≤n≤100。

Output

输出累计相加的结果。

Sample Input Copy

3

Sample Output Copy

10