i = 0
tyo = ei = don = 0
loop do
  nums = gets.split.map(&:to_i)
  a, b, c = nums.sort
  break if c >= a + b
  i += 1
  case a**2 + b**2 <=> c**2
  when -1
    don +=1
  when 0
    tyo += 1
  when 1
    ei += 1
  end
end
puts "#{i} #{tyo} #{ei} #{don}"

