#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

int main(void){

	int n;
	while( scanf("%d", &n) != EOF ) {
		unsigned long long int ans = ( n + 3 ) * ( n + 2 ) * ( n + 1 )  / 6 ;
		cout << ans << endl;
	}

    return 0;
}