import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = Integer.parseInt(scanner.next()); n Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int[] a = new int[n-1]; a new int[n-1] n-1 n 1 for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
            a[i] = Integer.parseInt(scanner.next());
        } {
            a[i] = Integer.parseInt(scanner.next());
        } a[i] = Integer.parseInt(scanner.next()) a[i] a i Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner int[] count = new int[n]; count new int[n] n for (int i = 0; i < n; i++) {
            count[i] = 0;
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            count[i] = 0;
        } {
            count[i] = 0;
        } count[i] = 0 count[i] count i 0 for (int ai: a) {
            count[ai-1] ++;
        } int ai a {
            count[ai-1] ++;
        } {
            count[ai-1] ++;
        } count[ai-1] ++ count[ai-1] count ai-1 ai 1 for (int ci: count) {
            System.out.println(ci);
        } int ci count {
            System.out.println(ci);
        } {
            System.out.println(ci);
        } System.out.println(ci) System.out.println System.out System System.out ci String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        int n = Integer.parseInt(scanner.next());
        int[] a = new int[n-1];
        for (int i = 0; i < n-1; i++) {
            a[i] = Integer.parseInt(scanner.next());
        }
        int[] count = new int[n];
        for (int i = 0; i < n; i++) {
            count[i] = 0;
        }
        for (int ai: a) {
            count[ai-1] ++;
        }
        for (int ci: count) {
            System.out.println(ci);
        }
    }
}
