object Main {
  def main(args: Array[String]): Unit = {
    var acute, right, obtuse = 0

    for(line <- io.Source.stdin.getLines()) {
      val edges = line.split(" ").map(_.toInt).toList.sorted
      val squared = edges.map(x => x * x)
      val isTryangle = (edges(0) < edges(1) + edges(2)) && (edges(1) < edges(0) + edges(2)) && (edges(2) < edges(0) + edges(1))

      if(isTryangle) {
        if(squared(2) < squared(0) + squared(1)) acute += 1
        if(squared(2) == squared(0) + squared(1)) right += 1
        if(squared(2) > squared(0) + squared(1)) obtuse += 1
      } else {
        println(s"${acute + right + obtuse} ${right} ${acute} ${obtuse}")
        System.exit(0)
      }
    }
  }
}
