#include <iostream> using namespace std; int main() { int N, a, sum=0; cin >> N; for(int i=1; i<=N; i++) { a = a + i; sum = sum + a; } cout << sum; return 0; }