// tested on node version 0.10.36
var fs = require("fs");

function count_combinations(n) {
    var count = 0;
    for(var a = 0; a < 10; a++) {
        for(var b = 0; b < 10; b++) {
            for(var c = 0; c < 10; c++) {
                for(var d = 0; d < 10; d++) {
                    if(a + b + c + d === n) {
                        count++;
                    }
                }
            }
        }
    }
    return count;
}

var input = fs.readFileSync('/dev/stdin').toString();
var lines = input.split("\n");
for(var i = 0; i < lines.length; i++) {
    var n = parseInt(lines[i]);
    if(!isNaN(n)) {
        console.log(count_combinations(n));
    }
}