#include<iostream>

using namespace std;
int combine(int *a){
	int max = 0,i = a[0],s=1,j;
	for(j=1;j<4;j++){
		if(i==a[j]){
			s++;
			continue;
		}
		else{
			max = max>s?max:s;
			s=1;
			i = a[j];
		}
	}
	max = max>s?max:s;
	max = 4-max;
	if(max==0)
	return 1;
	else if(max==1)	return 4;
	else if(max==2)	return 6;
	else return 1;
}
int main(){
	int n;
	while(cin>>n){
		int a[4],k=0;
		int left = n/2,right = n-left;
		a[0] = left/2;
		a[1] = left-a[0];
		a[2] = right/2;
		a[3] = right-a[2];
		for(;a[0]>=0;a[0]--){
			for(;a[1]>=0;a[1]--){
				for(;a[2]<=9;a[2]++){
					for(;a[3]<=9;a[3]++){
						int sum = a[0]+a[1]+a[2]+a[3];
						if(sum==n){
							k += combine(a);
						}
					}
				}
			}
		}
		cout<<k<<endl;
	}
	return 0;
}
