import Foundation

let input1: String = readLine()!
let N = Int(input1)!
let input2 = readLine()!
let bosses = input2.components(separatedBy: " ").map { Int($0)! }

var counts: [Int] = .init(repeating: 0, count: N)

for b in bosses {
  counts[b-1] += 1
}
for v in counts {
  print(v)
}