fun main() {
    val n = readLine()?.toInt() ?: return
    val a = readLine()?.split(" ")?.map(String::toInt) ?: return
    val subordinates = Array(n) { 0 }
    a.forEach {
        subordinates[it - 1]++
    }
    subordinates.forEach {
        println(it)
    }
}
