#include<iostream>
using namespace std;
int main() {
	int n,k;
	while (cin >> n) {
		k=0;
		for (int a = 0; a <= 9; a = a++) {
			for (int b = 0; b <= 9; b = b++) {
				for (int c = 0; c <= 9; c = c++) {
					for (int d = 0; d <= 9; d = d++) {
						if (a + b + c + d == n) {
							k ++;
						}
					}
				}
			}
		}
	}
	cout << k << endl;
	return 0;
}