object Main extends App {
  val N = scala.io.StdIn.readLine().toInt
  val workerList = scala.io.StdIn.readLine().split(' ').map(_.toInt)
  val bossesMap = workerList.groupBy(i => i)

  (1 to N).foreach(i => {
    println(
      bossesMap.get(i) match{
        case Some(w) =>  w.length
        case _ => 0
      }
    )
  })
}
