#include <math.h>
#include <iostream>
#include <ios>
#include <iomanip>
#include <algorithm>
#include <functional>
#include <string>

#define YES "YES"
#define NO "NO"
#define space ' '

using namespace std;

void func();

int main(void)
{
	
	func();

	return 0;
}


void func()
{
	

	int n, cnt;
	
	while (cnt = 0, cin >> n, !cin.eof()){


		for (int i = 0; i++ < 9;)
		{
			for (int ii = 0; ii++ < 9;)
			{
				for (int iii = 0; iii++ < 9;)
				{
					for (int iiii = 0; iiii++ < 9;)
					{
						if (i + ii + iii + iiii == n)
							cnt++;

					}
				}
			}
		}

		cout << cnt << endl;
	}
}