#include <bits/stdc++.h>
using  namespace std;
#define ll    long long int
#define pai     pair<int,int>
#define vi      vector<int>
#define vd      vector<double>
#define mpi     map<int,int>
#define mps     map<string,int>
#define sti     stack<int>
#define stc     stack<char>
#define sei     set<int>
#define ses     set<string>
#define multii  multiset<int>
#define forn(i,n)    for (int i = 0; i < n; i++)
#define fork(i,k,n)  for (int i = k; i <= n; i++)
#define forkr(i,k,n) for (int i = k; i >= n; i--)


 int main()
{
ll n;
while(cin>>n){
ll c=0;
for(int i=0;i<10;i++){
 for(int j=0;j<10;j++){
  for(int k=0;k<10;k++){
    for(int l=0;l<10;l++){
       if(i+j+k+l==n){
        c++;
       }
    }
  }
 }
}
cout<<c<<endl;
c=0;
}
}





