
def type(a, b, c) # a, b, c is sorted
    if a + b <= c then
        return -1
    elsif a * a + b * b == c * c then
        return 0
    elsif a * a + b * b > c * c then
        return 1
    else
        return 2
    end
end

t0 = 0
t1 = 0
t2 = 0

while true do
    
    a, b, c = gets.split.map(&:to_i)
    
    if a > b then
        t = a
        a = b
        b = t
    end
    
    if a > c then
        t = a
        a = c
        c = t
    end
    
    if b > c then
        t = b
        b = c
        c = t
    end
    
    ttype = type(a, b, c)
    
    if ttype == -1 then
        break
    elsif ttype == 0 then
        t0 += 1
    elsif ttype== 1 then
        t1 += 1
    else
        t2 += 1
    end
end

puts "#{t0 + t1 + t2} #{t0} #{t1} #{t2}"