public class Main {

    public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    }

} public class Main {

    public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    }

} Main public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    } main {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    } java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] arrn = new int[n]; arrn new int[n] n for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
            arrn[sc.nextInt() - 1]++;
        } {
            arrn[sc.nextInt() - 1]++;
        } arrn[sc.nextInt() - 1]++ arrn[sc.nextInt() - 1] arrn sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 for (int i : arrn) {
            System.out.println(i);
        } int i arrn {
            System.out.println(i);
        } {
            System.out.println(i);
        } System.out.println(i) System.out.println System.out System System.out i String[] args args public class Main {

    public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    }

} public class Main {

    public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    }

} Main
public class Main {

    public static void main(String[] args) {

        java.util.Scanner sc = new java.util.Scanner(System.in);

        int n = sc.nextInt();
        int[] arrn = new int[n];

        for (int i = 0; i < n - 1; i++) {
            arrn[sc.nextInt() - 1]++;
        }

        for (int i : arrn) {
            System.out.println(i);
        }
    }

}