#include <iostream>
#include <vector>
using namespace std;

int count = 0;
void dfs(int num, int tempsum, int sum) {
	if (sum < tempsum)
		return;
	if (num == 4) {
		if (tempsum == sum) {
			count++;
		}
		return;
	}

	for (int i = 9; i >= 0; i--) {
		dfs(num+1,tempsum + i,sum);
	}
}  

int main()  
{  
	int iSum = 0;
	while (cin >> iSum) {
		count = 0;
		dfs(0,0,iSum);
		cout << count << endl;
	}

	return 0;
}