#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cstring>
#include<cstdio>
#define rep(i,n) for(int i=0;i<n;i++)
#define foreach(r,n,p) for(r::iterator it=p.begin();it!=p.end();++it)
using namespace std;
int main()
{
    int n;
    while(cin>>n)
    {
        int ans = 0;
        rep(i,10)rep(j,10)rep(k,10)rep(l,10)
        {
            if(i+j+k+l == n)
            {
                ans ++;
            }
        }
        cout << ans<<endl;

    }
    return 0;
}