protocol InitFromString {
    init?(_ str: String)
}

extension Int: InitFromString {}
extension Int8: InitFromString {}
extension Int16: InitFromString {}
extension Int32: InitFromString {}
extension Int64: InitFromString {}
extension String: InitFromString {}

func input<T: InitFromString>() -> [T] {
    readLine()!.split(separator: " ").map(String.init).compactMap(T.init)
}

let n: Int = input()[0]
let a: [Int] = input()

var res = [Int](repeating: 0, count: n)
a.forEach { (i) in
    res[i - 1] += 1
}

print(res.map(String.init).joined(separator: "\n"))
