#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int sum1=1,sum2=0,sum=1; for(int i=2;i<=n;i++) { sum2=i+sum1; sum+=sum2; sum1=sum2; } cout<<sum; return 0; }