let n = Int(readLine()!)!

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

var array: [Int] = Array(repeating: 0, count: n)

for member in a {
  array[member-1] += 1
}

print(array.map { String($0) }.joined(separator: "\n"))
