import java.util.Arrays;
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 An = scanner.nextInt();
            B[An - 1]++;
        }

        for (int b: B) {
            System.out.println(b);
        }
    }
} import java.util.Arrays; Arrays java.util 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 An = scanner.nextInt();
            B[An - 1]++;
        }

        for (int b: B) {
            System.out.println(b);
        }
    }
} 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 An = scanner.nextInt();
            B[An - 1]++;
        }

        for (int b: B) {
            System.out.println(b);
        }
    } 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 An = scanner.nextInt();
            B[An - 1]++;
        }

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

        for (int b: B) {
            System.out.println(b);
        }
    }
} 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 An = scanner.nextInt();
            B[An - 1]++;
        }

        for (int b: B) {
            System.out.println(b);
        }
    }
} Main
import java.util.Arrays;
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 An = scanner.nextInt();
            B[An - 1]++;
        }

        for (int b: B) {
            System.out.println(b);
        }
    }
}
