import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    }
} Main public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    } main {
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    } Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int[] a = new int[n - 1]; a new int[n - 1] n - 1 n 1 int[] out = new int[n]; out new int[n] n for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        } {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        } a[i] = scan.nextInt() a[i] a i scan.nextInt() scan.nextInt scan out[a[i] - 1]++ out[a[i] - 1] out a[i] - 1 a[i] a i 1 for(int i = 0; i < n; i++) System.out.println(out[i]); int i = 0; int i = 0; i 0 i < n i n i++ i++ i System.out.println(out[i]); System.out.println(out[i]) System.out.println System.out System System.out out[i] out i scan.close() scan.close scan String[] args args public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    }
} public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner scan = new java.util.Scanner(System.in);
        int n = scan.nextInt();
        int[] a = new int[n - 1];
        int[] out = new int[n];
        for(int i = 0; i < n - 1; i++) {
            a[i] = scan.nextInt();
            out[a[i] - 1]++;
        }
        for(int i = 0; i < n; i++) System.out.println(out[i]);
        scan.close();
    }
}