import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    } main {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s int A[] = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
            A[i] = 0;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            A[i] = 0;
        } {
            A[i] = 0;
        } A[i] = 0 A[i] A i 0 for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
            int num = s.nextInt();
            A[num - 1] += 1;
        } {
            int num = s.nextInt();
            A[num - 1] += 1;
        } int num = s.nextInt(); num s.nextInt() s.nextInt s A[num - 1] += 1 A[num - 1] A num - 1 num 1 1 for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        } int i = 0; int i = 0; i 0 i < N i N 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 s.close() s.close s String[] args args public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    }
} public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int N = s.nextInt();
        int A[] = new int[N];
        for (int i = 0; i < N; i++) {
            A[i] = 0;
        }
        for (int i = 1; i < N; i++) {
            int num = s.nextInt();
            A[num - 1] += 1;
        }
        for (int i = 0; i < N; i++) {
            System.out.println(A[i]);
        }
        s.close();
    }
}