fun main(args: Array<String>) {
    val numberOfEmployees = readLine()!!.toInt()
    val A = readLine()!!.split(" ").map { it.toInt() }.sorted()

    var searedAt = 0
    (1..numberOfEmployees).forEach { employeeId ->
        var sum = 0
        for (i in searedAt until A.size) {
            if (A[i] == employeeId) {
                sum ++
            } else {
                println(sum)
                searedAt = i
                return@forEach
            }

            if (i == A.size - 1) {
                println(sum)
                searedAt = i
            }
        }
    }
}
