static void Main(string[] args)
{
int n = 0;
n = Convert.ToInt32(Console.ReadLine());
int result = sum(n);
Console.WriteLine(result.ToString());
Console.ReadLine();
}
private static int sum(int n)
{
int j = 1;
//结果
int result = 0;
for (int i = n; i > 0; i--)
{
result += j * i;
j++;
}
return result;
}