#include<iostream>
#include <cstdio>
#include <algorithm>

using namespace std;

int main() {

	int N,i,j,k,l,count=0;

	while (cin >> N) {
		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 (N == i + j + k + l)
							count++;
					}
				}
			}
		}
		cout << count << endl;
		count = 0;
	}
	
	return 0;

}