#include <iostream>

int combinations_of_sum_of_4_integers(int n);

int main(int argc, char** argv) {
	int n;

	while(std::cin >> n) {
		std::cout << combinations_of_sum_of_4_integers(n) << std::endl;
	}
}

int combinations_of_sum_of_4_integers(int n) {
	int i, j, k, l, result;
	result = 0;
	if(n > 36) {
		return 0;
	}
	for(i = 0; i <= 9; i++) {
		for(j = 0; j <= 9; j++) {
			for(k = 0; k <= 9; k++) {
				for(l = 0; l <= 9; l++) {
					if (i + j + k + l == n) {
						result += 1; 
					}
				}
			}
		}
	}
	return result;
}
