import java.util.Scanner;

public class Main {
        public static void main(String[] args) {
                Scanner scanner = new Scanner(System.in);
                int N = scanner.nextInt();
                int[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[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[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[i]);
        }
} Main public static void main(String[] args) {
                Scanner scanner = new Scanner(System.in);
                int N = scanner.nextInt();
                int[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[i]);
        } main {
                Scanner scanner = new Scanner(System.in);
                int N = scanner.nextInt();
                int[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[i]);
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] B = new int[N]; B new int[N] N for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                } {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                } int A = scanner.nextInt(); A scanner.nextInt() scanner.nextInt scanner B[A - 1]++ B[A - 1] B A - 1 A 1 for (int i = 0; i < N; i++)
                        System.out.println(B[i]); int i = 0; int i = 0; i 0 i < N i N i++ i++ i System.out.println(B[i]); System.out.println(B[i]) System.out.println System.out System System.out B[i] B i String[] args args public class Main {
        public static void main(String[] args) {
                Scanner scanner = new Scanner(System.in);
                int N = scanner.nextInt();
                int[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[i]);
        }
} public class Main {
        public static void main(String[] args) {
                Scanner scanner = new Scanner(System.in);
                int N = scanner.nextInt();
                int[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[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[] B = new int[N];
                for (int i = 0; i < N - 1; i++) {
                        int A = scanner.nextInt();
                        B[A - 1]++;
                }

                for (int i = 0; i < N; i++)
                        System.out.println(B[i]);
        }
}