#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int MIN = 0, MAX = 9;

int main() {
	int n;
	
	vector<int> make(100, 0);
	vector<int> maketwo(100, 0);
	
	for (int i=MIN; i <= MAX; i++) {
		for (int j=MIN; j <= MAX; j++) {
			for (int k=MIN; k<=MAX; k++) {
				for (int l=MIN; l<=MAX; l++) make[i+j+k+l]++;
			}
		}
	}
	
	while (cin >> n) {
		cout << make[n] << endl;
	}
	
	return 0;
}