
import java.util.Scanner;

public class Main {

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

        int N = scanner.nextInt();

        int[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


        for (int i = 1; i <= N ; i++) {
            System.out.println(count[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[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


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

        int N = scanner.nextInt();

        int[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


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

        int N = scanner.nextInt();

        int[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


        for (int i = 1; i <= N ; i++) {
            System.out.println(count[i]);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int[] count = new int[N + 1]; count new int[N + 1] N + 1 N 1 for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        } int i = 2 ; int i = 2 ; i 2 i <= N i N i++ i++ i {
            int boss = scanner.nextInt();
            count[boss]++;
        } {
            int boss = scanner.nextInt();
            count[boss]++;
        } int boss = scanner.nextInt(); boss scanner.nextInt() scanner.nextInt scanner count[boss]++ count[boss] count boss for (int i = 1; i <= N ; i++) {
            System.out.println(count[i]);
        } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
            System.out.println(count[i]);
        } {
            System.out.println(count[i]);
        } System.out.println(count[i]) System.out.println System.out System System.out count[i] count i String[] args args public class Main {

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

        int N = scanner.nextInt();

        int[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


        for (int i = 1; i <= N ; i++) {
            System.out.println(count[i]);
        }
    }
} public class Main {

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

        int N = scanner.nextInt();

        int[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


        for (int i = 1; i <= N ; i++) {
            System.out.println(count[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[] count = new int[N + 1];

        for (int i = 2 ; i <= N ; i++) {
            int boss = scanner.nextInt();
            count[boss]++;
        }


        for (int i = 1; i <= N ; i++) {
            System.out.println(count[i]);
        }
    }
}
