import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    }
} Main public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    } main {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    } final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) final int n = in.nextInt(); n in.nextInt() in.nextInt in in.nextLine() in.nextLine in int[] members = new int[n]; members new int[n] n for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            members[in.nextInt()-1]++;
        } {
            members[in.nextInt()-1]++;
        } members[in.nextInt()-1]++ members[in.nextInt()-1] members in.nextInt()-1 in.nextInt() in.nextInt in 1 for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            System.out.println(members[i]);
        } {
            System.out.println(members[i]);
        } System.out.println(members[i]) System.out.println System.out System System.out members[i] members i String[] args args public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    }
} public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public final class Main {

    public static void main(String[] args) {
        final Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        final int n = in.nextInt();
        in.nextLine();
        int[] members = new int[n];
        for (int i = 1; i < n; i++) {
            members[in.nextInt()-1]++;
        }
        for (int i = 0; i < n; i++) {
            System.out.println(members[i]);
        }
    }
}
