#include<iostream>
using namespace std;
int main(void){
	int n, i, j, k, l, C = 0;
	cin >> n;
	for (i = 1; i < 10; i++){
		for (j = 1; j < 10; j++){
			for (k = 1; k < 10; k++){
				for (l = 1; l < 10;l++){
					if (n == i + j + k + l){
						C = C++;
					}
				}
			}
		}
	}
	cout << C << endl;
	return 0;
}