// management

func main() {
    let n = Int(readLine()!)!
    let a = readLine()!.split(separator: " ").map{Int($0)!}
    var counts = Array(repeating: 0, count: n+1)
    for ai in a {
        counts[ai] += 1
    }
    for i in 1...(n) {
        print(counts[i])
    }
}

main()