import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()
    val a = Vector.fill(n - 1)(sc.nextInt())

    val res: IndexedSeq[Int] = (1 to n).map { na =>
      a.count(_ == na)
    }

    res.foreach(println)
  }
}
