#include "bits/stdc++.h"
using namespace std;

int main() {
	int N, X[19] = {}, XX[37] = {};
	for (int i = 0; i <= 9; i++) {
		for (int j = 0; j <= 9; j++) {
			X[i + j]++;
		}
	}
	for (int i = 0; i <= 18; i++) {
		for (int j = 0; j <= 18; j++) {
			XX[i + j] += X[i] * X[j];
		}
	}
	while (cin >> N) {
		if (N > 36) cout << 0 << endl;
		else cout << XX[N] << endl;
	}
}
