#include <iostream>
using namespace std;

int setCount(int n) {
    int aRange = 9;
    int bRange = 9;
    int cRange = 9;
    int dRange = 9;
    int sum;
    int count = 0;
    
    for(int a = 0; a <= aRange; a++) {
        for(int b = 0; b <= bRange; b++) {
            for(int c = 0; c <= cRange; c++) {
                for(int d = 0; d <= dRange; d++) {
                    sum = a + b + c + d;
                    if(sum == n){
                        count++;
                    }
                }
            }
        }
    }
    return count;
}

int main(void) {
    int count = 0;
    int n;
    
    while(cin >> n) {
        count = setCount(n);
        cout << count << endl;
        count = 0;
    }
    
    return 0;
}