import java.util.*;
class sum_series
{
public static void main(String args[])
{
int s=0,n,j=2;
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*j);
j++;
}
System.out.println("SUM="+s);
}
}
class sum_series
{
public static void main(String args[])
{
int s=0,n,j=2;
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*j);
j++;
}
System.out.println("SUM="+s);
}
}