44. 1+(1+2)+(1+2+3)+...

I'm a slow walker, but I never walk backwards.

Task Description
計算1+(1+2)+(1+2+3)+...

Input Format
輸入一正整數N
Output Format
輸出計算1+(1+2)+(1+2+3)+...到N的結果

Sample Input

1
3

Sample Output

1
10

Submit

Login

Testdata Set

Download Testdata