#include<stdio.h>
#include<string.h>
int main(void) {
	int  n, count = 0,con=0;
	while (con < 2)
	{
		scanf("%d", &n);
		for (size_t a = 0; a <= 9; a++)
		{
			for (size_t b = 0; b <= 9; b++)
			{
				for (size_t c = 0; c <= 9; c++)
				{
					for (size_t d = 0; d <= 9; d++)
					{
						if (a + b + c + d==n)
						{
							count++;
						}
					}
				}
			}
		}
		printf("%d\n", count);
		count = 0;
		con++;
	}
	return 0;
}