import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    }
} import java.util.ArrayList; ArrayList java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    } main {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan ArrayList<Integer> result = new ArrayList<>(); result new ArrayList<>() for (int i = 0; i < N; i++) {
            result.add(0);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            result.add(0);
        } {
            result.add(0);
        } result.add(0) result.add result 0 for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        } {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        } int tmp = scan.nextInt(); tmp scan.nextInt() scan.nextInt scan result.set(tmp - 1, result.get(tmp - 1) + 1) result.set result tmp - 1 tmp 1 result.get(tmp - 1) + 1 result.get(tmp - 1) result.get result tmp - 1 tmp 1 1 for (Integer r : result) {
            System.out.println(r);
        } Integer r result {
            System.out.println(r);
        } {
            System.out.println(r);
        } System.out.println(r) System.out.println System.out System System.out r String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    }
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        ArrayList<Integer> result = new ArrayList<>();
        for (int i = 0; i < N; i++) {
            result.add(0);
        }
        for (int i = 0; i < N - 1; i++) {
            int tmp = scan.nextInt();
            result.set(tmp - 1, result.get(tmp - 1) + 1);
        }

        for (Integer r : result) {
            System.out.println(r);
        }

    }
}
