#include <iostream>
using namespace std;

int main() {
	int i,j,k,l;
	int n, y_count = 0;
	while (cin >> n) {
		for (i = 0; i < 10; i++) {
			for (j = 0; j < 10; j++) {
				for (k = 0; k < 10; k++) {
					for (l = 0; l < 10; l++) {
						if (i+j+k+l == n) y_count++;
					}
				}
			}
		}
		cout << y_count << endl;
		y_count = 0;
	}
	return 0;
}