import std.stdio;
import std.algorithm;
import std.string;
import std.array;
import std.functional;
import std.conv;
import std.math;

void main(){
    while(true){
	auto s = readln();
	if(stdin.eof()) break;
	long n = to!long(s.chomp());
	auto res = (long x) =>(x+3)*(x+2)*(x+1)/ 6;
	writeln( res(n) );
    }
}