#include <iostream>
#include <cstdio>

using namespace std;

int main(){
	
	int n;
	
	while(true){
		cin >> n;
		if(cin.eof()){
			break;
		}
		printf("%d\n", (n + 1) * (n + 2) * (n + 3) / 6);
	}
	
	return 0;
}