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