#include<iostream>
#include<algorithm>
using namespace std;
int a[50];
int b[50];
int main(){
	for (int x = 0; x < 50; x++){
		cin >> a[x];
		while (cin >> a[x])


			for (int i = 0; i < 10; i++){
				for (int j = 0; j < 10; j++){
					for (int k = 0; k < 10; k++){
						for (int l = 0; l < 10; l++){
							if (i + j + k + l ==a[x] ){
								b[x]++;
							}
						}
					}
				}
			}
	}
	for(int x=0;x<50;x++)
{
cout << b[x] << endl;
}

	return 0;
}