import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    } main {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] employees = new int[N]; employees new int[N] N for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        } {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        } int temp = scanner.nextInt(); temp scanner.nextInt() scanner.nextInt scanner employees[temp - 1]++ employees[temp - 1] employees temp - 1 temp 1 scanner.close() scanner.close scanner for (int i : employees) {
            System.out.println(i);
        } int i employees {
            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) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        int[] employees = new int[N];

        for (int i = 0; i < N - 1; i++) {
            int temp = scanner.nextInt();
            employees[temp - 1]++;
        }

        scanner.close();

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

    }
}