#include<iostream>

using namespace std;

int get_numpair( int num );

int main(void)
{
	int num;

	for(;;)
	{
		cin >> num;
		if( cin.eof() ) break;
		cout << get_numpair(num) << endl;
	}

	return 0;
}

int get_numpair( int num )
{
	int numpair = 0;
	int pair[4];

	for( int i = 0 ; i <= 9999 ; i++ )
	{
		pair[3] = i/1000;
		pair[2] = (i%1000)/100;
		pair[1] = ((i%1000)%100)/10;
		pair[0] = ((i%1000)%100)%10;

		int sum = 0;
		for( int j = 0 ; j < 4 ; j++ )
		{
			sum += pair[j];
		}
		if( sum == num ) numpair ++;
	}

	return numpair;
}