func main() {
    let N = Int(readLine()!)!
    var subordinate: [Int] = Array(repeating: 0, count: N)
    readLine()!.split(separator: " ").forEach({subordinate[Int($0)! - 1] += 1})
    subordinate.forEach({print($0)})
}

main()
