import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    }
} Main public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    } main {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) Integer N = input.nextInt(); N input.nextInt() input.nextInt input Integer[] org = new Integer[N]; org new Integer[N] N Arrays.fill(org, 0) Arrays.fill Arrays org 0 for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            org[input.nextInt()-1]++;
        } {
            org[input.nextInt()-1]++;
        } org[input.nextInt()-1]++ org[input.nextInt()-1] org input.nextInt()-1 input.nextInt() input.nextInt input 1 for (int num : org) {
            System.out.println(num);
        } int num org {
            System.out.println(num);
        } {
            System.out.println(num);
        } System.out.println(num) System.out.println System.out System System.out num String[] args args public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Integer N = input.nextInt();
        Integer[] org = new Integer[N];
        Arrays.fill(org, 0);
        for (int i = 1; i < N; i++) {
            org[input.nextInt()-1]++;
        }
        for (int num : org) {
            System.out.println(num);
        }
    }
}
