r = a = o = 0
while gets
	x, y, z = $_.split.map &:to_i
	break if x+y<=z || y+z<=x || z+x<=y
	cos = (1..3).map{
		tmp = (x*x + y*y - z*z).to_f/(2*x*y) 
		x, y, z = y, z, x
		tmp
	}
	if cos.any?{|x| x < 0}
		o += 1
	elsif cos.all?{|x| x > 0}
		a += 1
	else
		r += 1
	end
end
puts [r+a+o, r, a, o].join(" ")