fun main(args: Array<String>) {

    var input = readLine()
    var n:Int = Integer.parseInt(input)

    input = readLine(); 
    val mArray = input?.split(" ");
    val numbers = Array<Int>(n,{0});

    for(i in mArray!!.indices){
        numbers[Integer.parseInt(mArray[i])-1] += 1;
    }

    for(i in numbers){
        println(i);
    }
}