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