san=tyo=ei=don=0
while true
    a,b,c=gets.split.map(&:to_i).sort
    if c<a+b
        san+=1
        cos_sgn=a**2+b**2-c**2
        if cos_sgn==0
            tyo+=1
        elsif cos_sgn>0
            ei+=1
        else
            don+=1
        end
    else
        printf("%d %d %d %d\n",san,tyo,ei,don)
        break
    end
end

