import java.util.Scanner;

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

                int N = scan.nextInt();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

        }

} 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();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

        }

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

                int N = scan.nextInt();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

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

                int N = scan.nextInt();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

        } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] buka = new int[N]; buka new int[N] N for (int i = 0; i < N-1; i++) {
                	int temp = scan.nextInt();
                	buka[temp-1]++;
                } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
                	int temp = scan.nextInt();
                	buka[temp-1]++;
                } {
                	int temp = scan.nextInt();
                	buka[temp-1]++;
                } int temp = scan.nextInt(); temp scan.nextInt() scan.nextInt scan buka[temp-1]++ buka[temp-1] buka temp-1 temp 1 scan.close() scan.close scan for (int output: buka) {
                	System.out.println(output);
                } int output buka {
                	System.out.println(output);
                } {
                	System.out.println(output);
                } System.out.println(output) System.out.println System.out System System.out output String[] args args public class Main {
        public static void main(String[] args) {
                Scanner scan = new Scanner(System.in);

                int N = scan.nextInt();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

        }

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

                int N = scan.nextInt();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

        }

} Main
import java.util.Scanner;

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

                int N = scan.nextInt();

                int[] buka = new int[N];

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

                scan.close();

                for (int output: buka) {
                	System.out.println(output);
                }

        }

}