res = Array.new(4,0)

loop do
    line = gets
    break if line.nil?
    input = line.split.map(&:to_i).sort
    x = input[2]
    y = input[0]
    z = input[1]
    if x >= (y+z) then
        break
    else
        res[0] += 1
        x2 = x**2
        o2 = y**2 + z**2
        if x2 == o2 then
            res[1] += 1
        elsif x2 > o2 then
            res[3] += 1
        else
            res[2] += 1
        end
    end
end
puts res.join(' ')
