fun main() {
    val n:Int = readLine()!!.toInt()
    val alll:List<Int> = readLine()!!.split(" ").map(String::toInt)
    val al:List<Int> = alll.map({it-1})
    var a:MutableList<Int> = mutableListOf()
    var count:Int = 0
    for (x in 1..n) {
        a.add(0)
    }
    for (x in al) {
        a[x] += 1
        count++
    }
    for (x in a) {
        println("${x}")
    }
}