import java.util.*;
import java.lang.*;
class Main {
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		int[] count=new int[t+1];
		for (int i=2;i<t+1;i++) {
			count[sc.nextInt()]++;
		}
		for (int i=1;i<t+1 ;i++ ) {
			System.out.println(count[i]);
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java class Main {
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		int[] count=new int[t+1];
		for (int i=2;i<t+1;i++) {
			count[sc.nextInt()]++;
		}
		for (int i=1;i<t+1 ;i++ ) {
			System.out.println(count[i]);
		}
	}
} Main public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		int[] count=new int[t+1];
		for (int i=2;i<t+1;i++) {
			count[sc.nextInt()]++;
		}
		for (int i=1;i<t+1 ;i++ ) {
			System.out.println(count[i]);
		}
	} main {
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		int[] count=new int[t+1];
		for (int i=2;i<t+1;i++) {
			count[sc.nextInt()]++;
		}
		for (int i=1;i<t+1 ;i++ ) {
			System.out.println(count[i]);
		}
	} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int t=sc.nextInt(); t sc.nextInt() sc.nextInt sc int[] count=new int[t+1]; count new int[t+1] t+1 t 1 for (int i=2;i<t+1;i++) {
			count[sc.nextInt()]++;
		} int i=2; int i=2; i 2 i<t+1 i t+1 t 1 i++ i++ i {
			count[sc.nextInt()]++;
		} {
			count[sc.nextInt()]++;
		} count[sc.nextInt()]++ count[sc.nextInt()] count sc.nextInt() sc.nextInt sc for (int i=1;i<t+1 ;i++ ) {
			System.out.println(count[i]);
		} int i=1; int i=1; i 1 i<t+1 i t+1 t 1 i++ i++ i {
			System.out.println(count[i]);
		} {
			System.out.println(count[i]);
		} System.out.println(count[i]) System.out.println System.out System System.out count[i] count i String args[] args
import java.util.*;
import java.lang.*;
class Main {
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		int t=sc.nextInt();
		int[] count=new int[t+1];
		for (int i=2;i<t+1;i++) {
			count[sc.nextInt()]++;
		}
		for (int i=1;i<t+1 ;i++ ) {
			System.out.println(count[i]);
		}
	}
}