import java.util.*;
class sum_series
{
public static void main(String args[])
{
int s=0,n,t=0;
Scanner sc = new Scanner(System.in);
System.out.println("Enter the value of n");
n=sc.nextInt();
for(int i=1;i<n;i++)
{
s=s+i;
t=t+s;
}
System.out.println("SUM="+t);
}
}