#include <cstdio>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;

int main(){
	long long n;
	while( cin >> n ){
		n=(n+1)*(n+2)*(n+3)/6;
		cout << n << "\n";
	}
	
return 0;
}