import scala.math._

object Main {
  val sc = new java.util.Scanner(System.in)
  def rank(d: Double) = d match {
    case x if x < 0.2 => 3
    case x if x < 0.6 => 2
    case x if x < 1.1 => 1
    case _ => 0
  }
  def main(args: Array[String]) {
    val c = Array.ofDim[Int](2, 4)
    while(sc.hasNext) {
      val l, r = sc.nextDouble
      c(0)(rank(l)) += 1
      c(1)(rank(r)) += 1
    }
    c.transpose.map(_.mkString(" ")).foreach(println)
  }
}