import Foundation

let N = Int(readLine()!)!
let managerCodeList = readLine()!.components(separatedBy: " ").map({return Int($0)!})
var bukaCountList = Array<Int>(repeating: 0, count: N)

managerCodeList.forEach({
    bukaCountList[$0-1] += 1
})

bukaCountList.forEach{
    print($0)
}