import java.util.Arrays;
import java.util.Scanner;

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

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

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

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

} Main
import java.util.Arrays;
import java.util.Scanner;

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

}
