# Volume0 - 0008
while n = gets
    n = n.to_i
    count = 0
    
    for a in 0..9
        break if a > n
        
        for b in 0..9
            break if a + b > n 
            
            for c in 0..9
                break if a + b + c > n
                
                for d in 0..9
                    break if a + b + c + d > n
                    
                    count += 1 if a + b + c + d == n
                end
            end
        end
    end
    puts count
end

