fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val aList = readLine()!!.split(" ").map(String::toInt)
    val aMap = mutableMapOf<Int?,Int?>()

    aList.forEach{
        if(aMap.containsKey(it)){
            aMap[it] = aMap[it]?.plus(1)
        }else{
            aMap[it] = 1
        }
    }

    for(i in 1 .. n){
        if(aMap.containsKey(i)){
            println(aMap[i])
        }else{
            println(0)
        }
    }
}