Problem3109--累计相加

3109: 累计相加

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

Description

输入一个正整数 lns="http://www.w3.org/1998/Math/MathML">,求形如:

lns="http://www.w3.org/1998/Math/MathML">1+(1+2)+(1+2+3)+(1+2+3+4)++(1+2+3+4+5++) 的累计相加。

Input

输入一个正整数 lns="http://www.w3.org/1998/Math/MathML">。约定 lns="http://www.w3.org/1998/Math/MathML">1<100

Output

输出累计相加的结果。

Sample Input Copy

3

Sample Output Copy

10

HINT

样例输入2:  4
样例输出2: 20


样例输入3:  10

样例输出3:  220

Source/Category