import Foundation

let input_line: String = readLine()!

let n: Int = Int(input_line)!

let input_line2: String = readLine()!
let split2: [String] = input_line2.components(separatedBy: " ") //ブランクで区切られている場合
var array: [Int] = []

for a in split2 {
    array.append(Int(a)!)
}

var ansArray: [Int] = Array(repeating: 0, count: n-1)

for a in array {
    if a == 0 {
    } else {
        ansArray[a-1] += 1
    }
}

ansArray.append(0)

for ans in ansArray {
    print(ans)
}