import scala.io.StdIn.readInt
import scala.collection.mutable.ArrayBuffer

object Main extends App {
  var n = 0
  val b = new ArrayBuffer[Int]
  while( {n=readInt;n} != 0 ) {
    val a = new Array[Int](7)
    for(i<-0 until n) {
      val m = readInt
      if(m<10) a(0) += 1
      else if(m>=10 && m<20) a(1) += 1
      else if(m>=20 && m<30) a(2) += 1
      else if(m>=30 && m<40) a(3) += 1
      else if(m>=40 && m<50) a(4) += 1
      else if(m>=50 && m<60) a(5) += 1
      else if(m>=60) a(6) += 1
    }
    b ++= a
  }
  println(b.mkString("\n"))
}