import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val n = sc.nextLine().toInt()
    val a = sc.nextLine().split(" ")

    val emp = a.groupingBy { it }.eachCount()

    val sb = StringBuilder()
    (1..n).forEach {
        sb.append(emp[it.toString()] ?: 0).append("\n")
    }
    print(sb.toString())
}