fun main(args: Array<String>) {
    management()
}

private fun management() {
    readLine()?.toInt()?.let { employeeCount ->
        val cnt = IntArray(employeeCount)
        readLine()?.split(" ")?.map { it.toInt() }?.let {
            for (i in it) {
                cnt[i-1]++
            }
        }
        cnt.forEach {
            println(it)
        }
    }
}