#include signed main(){ int n; std::cin>>n; int64_t a,ans=0; for(int i=0;i>a; ans += a*(i+1)*(n-i); } std::cout << ans << std::endl; }