#include <iostream>
#include <vector>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <ctime>
#include <iterator>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
using namespace std;


int main()
{
    int n;
    while(cin>>n)
    {
        int res = 0;
        for(int c=0;c<=9;c++)
        {
            for(int c2=0;c2<=9;c2++)
            {
                for(int c3=0;c3<=9;c3++)
                {
                    int c4 = n - c3 -c2 - c;
                    if(c4 >= 0 && c4 <= 9)
                        res++;
                }
            }
        }
        cout<<res<<endl;
    }
}