#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <string>

using namespace std;

int main(){
	int n;
	while(cin>>n){
		int ans = 0;
		for (int i = 0; i < 10; i++)
		{
			for (int j = 0; j < 10; j++)
			{
				for (int k = 0; k < 10; k++)
				{
					if(n - (i+j+k) >= 0 && n - (i+j+k) <= 9)
						ans++;
				}
			}
		}
		cout << ans << endl;
	}

	return 0;
}