## main

rtr = atr = otr = 0

loop do
  a, b, c = gets.strip.split(' ').map{|s| s.to_i}

  if a >= b + c || b >= c + a || c >= a + b
    total = rtr + atr + otr
    puts [total, rtr, atr, otr].join(' ')
    break
  end

  a2 = a * a
  b2 = b * b
  c2 = c * c

  if a2 == b2 + c2 || b2 == c2 + a2 || c2 == a2 + b2
    rtr += 1
  elsif a2 > b2 + c2 || b2 > c2 + a2 || c2 > a2 + b2
    otr += 1
  else
    atr += 1
  end
end