#include "stdio.h"

int main()
{
    int a, b, c, d, n;
    while(scanf("%d", &n) != EOF)
    {
        int count = 0;
        for (int i = 0; i <= 9; i++)
        {
            for (int j = 0; j <= 9; j++)
            {
                for (int m = 0; m <= 9; m++)
                {
                    for (int i = 0; i <= 9; i++)
                    {
                        if (a + b + c + d == n)
                            count++;
                    }
                }
            }
        }
        printf("%d\n", count);
    }
    return 0;
}