#include<bits/stdc++.h>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define pb(a) push_back(a)
#define all(a) (a).begin(), (a).end()
#define debug(x) cout << "debug " << x << endl;
using namespace std;

int main(){
    int left[4005], right[4005];
    rep(i,4005){
        left[i] = i + 1;
        right[i] = i + 1;
    }
    
    int ans[4005];
    rep(i,4005){
        rep(j,i + 1){
            ans[i]+= left[j] * right[i - j];
        }
    }
    int n;
    while(cin >> n){
        cout << ans[n] << endl;
    }
}