object Main extends App{
  import scala.io.StdIn._
  val n=readInt()
  val a=readLine().split(" ").map(_.toInt)
  var A=new Array[Int](n)
  for{i <- (0 until(n-1))}{
    A(a(i)-1) += 1
  }
  println(A.mkString("\n"))
}