import Foundation

func readInts() -> [Int]{
    readLine()!.split(separator: " ").map { Int($0)! }
}

func main(){
    let n = Int(readLine()!)!
    let aryA = readInts()
//    TLE発生
//    for i in 1...n {
//        print(aryA.filter { $0 == i }.count > 0 ? aryA.filter { $0 == i }.count: 0)
//    }
//    修正後
    var counter = [Int](repeating: 0, count: n)
    print(counter)
    for i in aryA {
        counter[i-1] += 1
    }
    for i in 0...aryA.count{
        print(counter[i])
    }
}
main()
