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