import std.stdio,std.string,std.conv;

immutable int MAX = 50;
immutable int COUNT = 9;

void main(){
    char[] buf;
    int[] dataset;
    while(stdin.readln(buf)){
        if(buf.chomp().to!string().isNumeric){
            dataset ~= buf.chomp().to!int();
        }
        if(dataset.length > 50)
            break;
    }

    int[] ans;
    foreach(int num;dataset){
        ans ~= searchNum(num);
    }

    foreach(int num;ans){
        writeln(num);
    }
}

int searchNum(int x){
    int result = 0;
    for(int i = 0;i <= COUNT;i++){
        for(int j = 0;j <= COUNT;j++){
            for(int m = 0;m <= COUNT;m++){
                for(int k = 0;k <= COUNT;k++){
                    if(x == i + j + k + m){
                        result++;
                    }
                }
            }
        }
    }
    return result;
}