fun main(args:Array<String>?): Unit {
    while(true){
        val n = readLine()!!.trim().toInt()
        if (n == 0) return
        val count = Array(7){0}
        repeat(n){
            count[(readLine()!!.toInt() / 10).let{if (it > 6) 6 else it}]++
        }
        println(count.joinToString("\n"))
    }
}
