fun main(args: Array<String>) {
    val n = read().toInt()

    val ans = IntArray(n){0}
    repeat(n-1) {
        ans[read().toInt()-1]++
    }

    ans.forEach {
        println(it)
    }
}

@JvmField val INPUT = System.`in`
@JvmField val _reader = INPUT.bufferedReader()
fun readLine(): String? = _reader.readLine()
@JvmField var _ln = ""
@JvmField var _lnPtr = 0
fun read(): String {
    while (_lnPtr >= _ln.length) {
        _ln = readLine() ?: return ""
        _lnPtr = 0
    }
    var j = _ln.indexOf(' ', _lnPtr)
    if(j < 0) j = _ln.length
    val res = _ln.substring(_lnPtr, j)
    _lnPtr = j + 1
    return res
}