#include <iostream>
using namespace std;

int main()
{
	int n;
	while(cin >> n)
	{
		if(n > 36)
		{
			cout << 0 << endl;
			continue;
		}

		int max = (n < 9) ? n : 9;

		int found = 0;
		for(int a = 0; a <= max; a++)
			for(int b = 0; b <= max; b++)
				for(int c = 0; c <= max; c++)
					for(int d = 0; d <= max; d++)
						if(a + b + c + d == n)
							found++;

		cout << found << endl;
	}

	return 0;
}