import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] arr = new int[N];
        int tmp = 0;
        for(int i = 1; i < N; i++) {
            tmp = sc.nextInt();
            arr[tmp - 1] += 1;
        }
        for(int j = 0; j < N; j++) {
            System.out.println(arr[j]);
        }
    }
} 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[] arr = new int[N];
        int tmp = 0;
        for(int i = 1; i < N; i++) {
            tmp = sc.nextInt();
            arr[tmp - 1] += 1;
        }
        for(int j = 0; j < N; j++) {
            System.out.println(arr[j]);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] arr = new int[N];
        int tmp = 0;
        for(int i = 1; i < N; i++) {
            tmp = sc.nextInt();
            arr[tmp - 1] += 1;
        }
        for(int j = 0; j < N; j++) {
            System.out.println(arr[j]);
        }
    } main {
        Scanner sc = new Scanner(System.in);

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

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

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

        int N = sc.nextInt();
        int[] arr = new int[N];
        int tmp = 0;
        for(int i = 1; i < N; i++) {
            tmp = sc.nextInt();
            arr[tmp - 1] += 1;
        }
        for(int j = 0; j < N; j++) {
            System.out.println(arr[j]);
        }
    }
}