#include <stdio.h>

int main()
{
	int n;
	
	while ( scanf ("%d", &n) != EOF)
	{
		int count = 0;
		
		for (int i = 1; i <= 9; i++)
			for (int j = 1; j <= 9; j++)
				for (int k = 1; k <= 9 ; k++)
					for (int l = 1; l <= 9; l++)
						if ( (i + j + k + l) == n)
							count ++;
							
		printf ("%d\n", count);
	}

        return 0;
}