package main

import (
	"fmt"
)

func main() {
	var n int
	fmt.Scan(&n)
	
	n = n+1
	emp := make([]int,n)
	
	num := 0
	for i := 2; i < n; i++ {
		fmt.Scan(&num)
		emp[num]++
	}

	for i := 1; i < n; i++ {
		fmt.Println(emp[i])
	}
}