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