import java .util.*;

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

public class Main {
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int N = sc.nextInt();
	int[] sum = new int[N];
	for (int i=0; i<N-1; i++) {
	    sum[sc.nextInt()-1]++;
	}
	for (int i=0; i<N; i++) {
	    System.out.println(sum[i]);
	}
    }
}
