#include<iostream>
#include<list>
using namespace std;

int main(){
	int N,count;
	list<int> counter;
	
	while(!(cin>>N).eof()){
		count=0;
		for(int i=0; i<10;i++){
			if((N-i)/3 >9) continue;
			for(int j=0; j<10;j++){
				if((N-i-j)/2 > 9) continue;
				for(int k=0; k<10;k++){
					if((N-i-j-k) > 9 || (N-i-j-k)<0) continue;
					//cout << i<< " " << j << " " << k << " "<< N-i-j-k <<endl;
					count++;
				}
			}
		}
		counter.push_back(count);
	}
	list<int>::iterator it = counter.begin();
	while(it != counter.end()){
		cout << *it << endl;
		it++;
	}
	return 0;
}