Problem1047--数列和

1047: 数列和

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

Description

输入一个整数n,输出数列1*1 + 2*2 + 3*3 +……前n项的和。

Input

输入一个正整数n(不大于1000)。

Output

输出一个正整数,即前n项和。

Sample Input Copy

4

Sample Output Copy

30

Source/Category

admin