import scala.math._
import scala.collection.mutable.ListBuffer

object Main {
  //rt.gc()??§??¬??????????????¬?????????????????????
  //val rt = Runtime.getRuntime()
  val sc = new java.util.Scanner(System.in)
  def main(args: Array[String]) {
    while(true) {
      val n = sc.nextInt()
      if(n == 0) {
        return
      }

      val ans = new Array[Int](7)
      for(_ <- 1 to n) {
        val c = min(sc.nextInt()/10, 6)
        ans(c) += 1
      }
      ans.foreach(println)
    }
  }
}