a = b = c = 0

loop do
  arr = gets.split.map(&:to_i).sort
  
  break if arr[0] + arr[1] <= arr[2]
  
  case arr[0] ** 2 + arr[1] ** 2
  when (0...arr[2] ** 2)
    c += 1
  when arr[2] ** 2
    a += 1
  else
    b += 1
  end
end

puts [a + b + c, a, b, c].join(" ")