#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

#define FOR(i,b,n) for(int i=b;i<n;i++)
#define CLR(mat) memset(mat, 0, sizeof(mat))
#define INF 1<<25

using namespace std;

int n,sum,out;

int main()
{
	while( cin >> n, !cin.eof())
	{
		out = 0;
		
		FOR(a,0,10)
			FOR(b,0,10)
				FOR(c,0,10)
					FOR(d,0,10)
					{
						if( n == a+b+c+d )
						{
							out++;
						}
					}
		
		
		cout << out << endl;
	}
	
	return 0;
}