fun main() {
    val input = rint()
    val input2 = rspint()
    function(input, input2)
}

fun function(in1: Int, in2: List<Int>) {
    val counts = in2.groupingBy { it }.eachCount()
    for (i in 1..in1) {
        println(counts[i] ?: 0)
    }
}

inline fun rsp() = readLine()!!.split(" ")

inline fun rspint() = rsp().map(String::toInt)

inline fun rint() = readLine()!!.toInt()