#include <iostream>
using namespace std;

int main(void){

	while (true){
		int n, count=0;
		cin>>n;
		if (cin.eof()) break;	
		for (int i1=0; i1<10; i1++){
			int n1 = n-i1;
			if (n1 < 0 || n1 > 27) continue;
			for (int i2=0; i2<10; i2++){
				int n2 = n1 - i2;
				if (n2 < 0 || n2 > 18) continue;
				for (int i3=0; i3<10; i3++){
					int n3 = n2 - i3;
					if (n3<0 || n3>9) continue;
					count++;
				}
			}
		}
		cout<<count<<endl;
	}
	return 0;
} 