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