//#include <stdio.h> This is a C library
#include <iostream> // THIS is a c++ library
int main() {
int n=0;
int nmax;
int sum=0;
int vn;
int sn;
//printf("enter nmax"); This is a C command.
std::cout<<"Enter n's max value.\n";
//scanf("%d", &nmax); "
std::cin>>nmax;
nmax=nmax+1;
while (n<nmax){
sn=n+1;
vn=n*sn;
sum = sum+vn;
n=n+1;
}
std::cout<<sum;
}