https://www.acmicpc.net/problem/1834
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
long n=s.nextInt();
long num=0;
for(int i=1;i<n;i++){
num+=i*n+i;
}
System.out.print(num);
}
}