object Main extends App {
  import scala.io.StdIn._
  val n = readLong()
  val a = readLine().split(" ").map(_.toLong).toSeq
  val map = scala.collection.mutable.HashMap[Long,Int]()
  for(i <- a){
    map(i) = if(map.contains(i)) map(i) + 1 else 1
  }
  for(i <- 1L to(n)){
    println(if(map.contains(i)) map(i) else 0)
  }
}