#include <iostream>
#include<math.h>
using namespace std;



int main(void){	

	int n,count=0;
	while (cin >> n){

		for (int i = 1; i < 10; i++){
			for (int j = 1; j < 10; j++){
				for (int k = 1; k < 10; k++){
					for (int l = 1; l < 10; l++){

						if (i + j + k + l == n){
							count++;
						}

					}
				}
			}
		}cout << count << endl;

	}
	
	return 0;
}