#include <iostream>

using namespace std;


int main()
{
    int num = 0;
    int cnt = 0;
    
    while (cin >> num)
    {
        cnt = 0;
        for (int i = 0; i < 10; i++)
        {
            for (int j = 0; j < 10; j++)
            {
                for (int k = 0; k < 10; k++)
                {
                    for (int m = 0; m < 10; m++)
                    {
                        if (num == (i + j + k +m))
                        {
                            cnt++;
                        }
                    }
                }
            }
        }
        
        cout << cnt << endl;
    }
    
    return 0;
}

