a = [0,1,2,3,4,5,6,7,8,9]
b = [0,1,2,3,4,5,6,7,8,9]
c = [0,1,2,3,4,5,6,7,8,9]
d = [0,1,2,3,4,5,6,7,8,9]
nn = gets
until nn.nil?
n = nn.to_i
arry =  a.product(b,c,d)
s = 0
arry.each do |x,y,z,w|
    num =  x + y + z + w
    if num == n
        s += 1
    end
end
puts s
nn = gets
end

