import java.util.*;

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

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