
#include <iostream>
#include <stdlib.h>
using namespace std;
#define thefor(i,end) for (i=0;i<=end;i++)
int main()
{    
	int n,a=0,b=0,c=0,d=0,end=9,con=0;
	while(cin>>n)
	{
		con=0;
		thefor(a,end)
		{
			thefor(b,end)
			{
				thefor(c,end)
				{
					thefor(d,end)
					{
						if(a+b+c+d==n)con++;
					}
				}
			}
		}
		cout<<con<<endl;
	}	
}