import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // long N = s.nextLong();
        int M = s.nextInt();
        int[] a = new int[M];
        for (int i = 0; i < M-1; i++) {
            a[i] = s.nextInt();
        }

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

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

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

        for (int i = 1; i < b.length; i++) {
            System.out.println(b[i]);
        }
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // long N = s.nextLong();
        int M = s.nextInt();
        int[] a = new int[M];
        for (int i = 0; i < M-1; i++) {
            a[i] = s.nextInt();
        }

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

        for (int i = 1; i < b.length; i++) {
            System.out.println(b[i]);
        }
    } main {
        Scanner s = new Scanner(System.in);
        // long N = s.nextLong();
        int M = s.nextInt();
        int[] a = new int[M];
        for (int i = 0; i < M-1; i++) {
            a[i] = s.nextInt();
        }

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

        for (int i = 1; i < b.length; i++) {
            System.out.println(b[i]);
        }
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int M = s.nextInt(); M s.nextInt() s.nextInt s int[] a = new int[M]; a new int[M] M for (int i = 0; i < M-1; i++) {
            a[i] = s.nextInt();
        } int i = 0; int i = 0; i 0 i < M-1 i M-1 M 1 i++ i++ i {
            a[i] = s.nextInt();
        } {
            a[i] = s.nextInt();
        } a[i] = s.nextInt() a[i] a i s.nextInt() s.nextInt s int[] b = new int[a.length+1]; b new int[a.length+1] a.length+1 a.length a a.length 1 Arrays.fill(b, 0) Arrays.fill Arrays b 0 for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        } int i = 0; int i = 0; i 0 i < M i M i++ i++ i {
            int l = a[i];
            b[l] += 1;
        } {
            int l = a[i];
            b[l] += 1;
        } int l = a[i]; l a[i] a i b[l] += 1 b[l] b l 1 for (int i = 1; i < b.length; i++) {
            System.out.println(b[i]);
        } int i = 1; int i = 1; i 1 i < b.length i b.length b b.length i++ i++ i {
            System.out.println(b[i]);
        } {
            System.out.println(b[i]);
        } System.out.println(b[i]) System.out.println System.out System System.out b[i] b i String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // long N = s.nextLong();
        int M = s.nextInt();
        int[] a = new int[M];
        for (int i = 0; i < M-1; i++) {
            a[i] = s.nextInt();
        }

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

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

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

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

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // long N = s.nextLong();
        int M = s.nextInt();
        int[] a = new int[M];
        for (int i = 0; i < M-1; i++) {
            a[i] = s.nextInt();
        }

        int[] b = new int[a.length+1];
        Arrays.fill(b, 0);
        for (int i = 0; i < M; i++) {
            int l = a[i];
            b[l] += 1;
        }

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