https://www.acmicpc.net/problem/1834
using System;
class Program
{
static void Main() {
string s=Console.ReadLine();
long n=int.Parse(s);
long num=0;
for(int i=1;i<n;i++){
num+=i*n+i;
}
Console.Write(num);
}
}