var input = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
    input += chunk;
});
process.stdin.on('end', function() {
    main(input)
});

function main(input){
    var args = input.trim().split('\n');
    args.map(Number).forEach(function(x){
        console.log(solve(x));
    })
}

function solve(x){
    var count = 0;
    if(x > 9 * 4) {
        return count;
    }

    for(var a = 0; a <= 9; a += 1)
        for(var b = 0; b <= 9; b += 1)
            for(var c = 0; c <= 9; c += 1)
                for(var d = 0; d <= 9; d += 1)
                    if(a + b + c + d === x)
                        count += 1;

    return count;
}