#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

int main(){
    int n, cnt = 0;
    while(cin>>n){
        REP(i, 10){
            REP(j, 10){
                REP(k, 10){
                    REP(l, 10){
                        if(i+j+k+l == n)
                            cnt++;
                    }
                }
            }
        }
        cout << cnt << endl;
        cnt = 0;
    }
}
