object Main extends App {
  val N = scala.io.StdIn.readLine().toInt
  val workerList = scala.io.StdIn.readLine().split(' ').map(_.toInt)
  (1 to N).foreach(i =>{
    println(
      workerList.count(_ == i)
    )
  })
}
