import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        long a[] = new long[(int)n];
        for (long l = 1; l < n; l++) {
            a[sc.nextInt() - 1] += 1;
        }
        sc.close();

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

        for (int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        long a[] = new long[(int)n];
        for (long l = 1; l < n; l++) {
            a[sc.nextInt() - 1] += 1;
        }
        sc.close();

        for (int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        long a[] = new long[(int)n];
        for (long l = 1; l < n; l++) {
            a[sc.nextInt() - 1] += 1;
        }
        sc.close();

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

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

        for (int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        long a[] = new long[(int)n];
        for (long l = 1; l < n; l++) {
            a[sc.nextInt() - 1] += 1;
        }
        sc.close();

        for (int i = 0; i < a.length; i++) {
            System.out.println(a[i]);
        }
    }
}
