import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    }

} import java.util.*; util.* java public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a = new int[n]; a new int[n] n for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            int x = sc.nextInt()-1;
            a[x]++;
        } {
            int x = sc.nextInt()-1;
            a[x]++;
        } int x = sc.nextInt()-1; x sc.nextInt()-1 sc.nextInt() sc.nextInt sc 1 a[x]++ a[x] a x StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            sb.append(a[i]).append("\n");
        } {
            sb.append(a[i]).append("\n");
        } sb.append(a[i]).append("\n") sb.append(a[i]).append sb.append(a[i]) sb.append sb a[i] a i "\n" System.out.print(sb.toString()) System.out.print System.out System System.out sb.toString() sb.toString sb sc.close() sc.close sc String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    }

} Main
import java.util.*;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] a = new int[n];
        for (int i = 1; i < n; i++) {
            int x = sc.nextInt()-1;
            a[x]++;
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < n; i++) {
            sb.append(a[i]).append("\n");
        }
        System.out.print(sb.toString());
        sc.close();

    }

}
