fun main(args: Array<String>) {
    val line = readLine()!!.trim()
    val n = line.toInt()

    val line2 = readLine()!!.trim()
    val josis = line2.split(" ").map {it.toInt()}

    val bukas: MutableList<Int> = (0..n-1).map {0}.toMutableList()
    for (josi in josis) {
        bukas[josi - 1] += 1
    }

    bukas.forEach {
        println("${it}")
    }
}