import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    } 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-1]; A new int[N-1] N-1 N 1 for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        } int i = 0; int i = 0; i 0 i < (N-1) i (N-1) N 1 i++ i++ i {
            A[i]=sc.nextInt();
        } {
            A[i]=sc.nextInt();
        } A[i]=sc.nextInt() A[i] A i sc.nextInt() sc.nextInt sc int[] numBuka=new int[N]; numBuka new int[N] N for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        } int i = 0; int i = 0; i 0 i < (N-1) i (N-1) N 1 i++ i++ i {
            numBuka[A[i]-1]++;
        } {
            numBuka[A[i]-1]++;
        } numBuka[A[i]-1]++ numBuka[A[i]-1] numBuka A[i]-1 A[i] A i 1 for (int n : numBuka) {
            System.out.println(n);
        } int n numBuka {
            System.out.println(n);
        } {
            System.out.println(n);
        } System.out.println(n) System.out.println System.out System System.out n sc.close() sc.close sc String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N=sc.nextInt();
        int[] A=new int[N-1];
        for (int i = 0; i < (N-1); i++) {
            A[i]=sc.nextInt();
        }
        int[] numBuka=new int[N];
        for (int i = 0; i < (N-1); i++) {
            numBuka[A[i]-1]++;
        }
        for (int n : numBuka) {
            System.out.println(n);
        }
        sc.close();
    }
}