#include <iostream>

using namespace std;

int main()
{
	int n;
	while ( cin >> n ) {
		int count;
		if (n>36) count = 0;
		else {
			if (n>18) n = 36 - n;
			count = ((n+1)*(n+2)*(n+3))/6;
		}
		cout << count << endl;
	}
	
	return 0;
}