import std.stdio, std.string, std.conv;
import std.array, std.algorithm, std.range;

auto solve(immutable int n)
{
    int s=0;
    foreach(a;0..10)
        foreach(b;0..10)
            foreach(c;0..10)
                foreach(d;0..10)
                    if(a+b+c+d==n)
                        ++s;
    return s;
}

void main()
{
    stdin.byLine().map!(to!int).map!solve().map!(to!string).join("\n").writeln();
}