#include<iostream>
using namespace std;



int main() {
	int a, b, c, d, n;
	int k = 0;
	while (cin >> n) {for (a = 0; a <= 9; a = a + 1) {for (b = 0; b <= 9; b = b + 1) {for (c = 0; c <= 9; c = c + 1) {for (d = 0; d <= 9; d = d + 1) {if (a + b + c + d == n) {
k += 1;}}}}}}cout << k << endl;return 0;}