#include <iostream>
#include <array>
#include <cstdint>

int main()
{
	std::int32_t n;
	while (std::cin >> n) {
		std::int32_t num_comb = 0;
		for (std::int32_t a = 0; a < 10; ++a) {
		for (std::int32_t b = 0; b < 10; ++b) {
		for (std::int32_t c = 0; c < 10; ++c) {
		for (std::int32_t d = 0; d < 10; ++d) {
			if (a + b + c + d == n) {
				++num_comb;
			}
		}}}}
		std::cout << num_comb << std::endl;
	}
	return 0;
}