let N = Int(readLine()!)!
let A = readLine()!.split(separator: " ").map { Int($0)! }

var boss = Array(repeating: 0, count: N + 1)

for a in A {
    boss[a] += 1
}

for count in boss.dropFirst() {
    print(count)
}
