#include <iostream>
#include <algorithm>

int resolve(int input)
{
	int result = 0;
	int max_a = std::min(9, input);
	for (int a = 0; a <= max_a; ++a) {
		int max_b = std::min(9, input - a);
		for (int b = 0; b <= max_b; ++b) {
			int max_c = std::min(9, input - a - b);
			for (int c = 0; c <= max_c; ++c) {
				int d = input - a - b - c;
				if (0 <= d && d <= 9) {
					++result;
				}
			}
		}
	}
	return result;
}

int main()
{
	int input;
	while (std::cin >> input) {
		std::cout << resolve(input) << std::endl;
	}

	return 0;
}