fun main(){
    val input: List<Int> = readLine()!!.split(" ").map { it.toInt() }//条件入力
    val bucket: Array<Int?> = Array(input[0]){0}
    val getnumber = readLine()!!.split(" ").map { it.toInt() }
    for(a in getnumber){
        bucket[a-1] = bucket[a-1]?.plus(1)
    }
    for(a in bucket)
    println(a)
}