#include <stdio.h>
#include <iostream>
#include <string.h>
using namespace std;

int main() 
{
	int a, b, c, d;
	int n;
	int count = 0;
	while (1) 
	{
		cin >> n;
		if (n >= 0 && n <= 50)
		{
			for (a = 0; a <= 9; a++) {
				for (b = 0; b <= 9; b++) {
					for (c = 0; c <= 9; c++)
					{
						d = n - (a + b + c);
						if (d >= 0 && d <= 9) {
							printf("a = %d, b = %d,c = %d, d = %d \n", a, b, c, d);
							count++;
						}
					}
				}
			}
			printf("%d\n", count);
			break;
		}
		else 
		{
			printf("????????°????????\????????????????????????\n");
		}
	}
}