import java.util.*;

class Main{
    public Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());
        int[] A = new int[N];
        for(int i=0;i<N-1;i++){
            A[Integer.parseInt(SC.next())-1] += 1;
        }
        for(int i=0;i<N;i++){
            System.out.println(A[i]);
        }
    }

    public static void main(String args[]){
        Main main = new Main();
    }
} import java.util.*; util.* java class Main{
    public Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());
        int[] A = new int[N];
        for(int i=0;i<N-1;i++){
            A[Integer.parseInt(SC.next())-1] += 1;
        }
        for(int i=0;i<N;i++){
            System.out.println(A[i]);
        }
    }

    public static void main(String args[]){
        Main main = new Main();
    }
} Main public Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());
        int[] A = new int[N];
        for(int i=0;i<N-1;i++){
            A[Integer.parseInt(SC.next())-1] += 1;
        }
        for(int i=0;i<N;i++){
            System.out.println(A[i]);
        }
    } Main {
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());
        int[] A = new int[N];
        for(int i=0;i<N-1;i++){
            A[Integer.parseInt(SC.next())-1] += 1;
        }
        for(int i=0;i<N;i++){
            System.out.println(A[i]);
        }
    } Scanner SC = new Scanner(System.in); SC new Scanner(System.in) int N = Integer.parseInt(SC.next()); N Integer.parseInt(SC.next()) Integer.parseInt Integer SC.next() SC.next SC int[] A = new int[N]; A new int[N] N for(int i=0;i<N-1;i++){
            A[Integer.parseInt(SC.next())-1] += 1;
        } int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
            A[Integer.parseInt(SC.next())-1] += 1;
        } {
            A[Integer.parseInt(SC.next())-1] += 1;
        } A[Integer.parseInt(SC.next())-1] += 1 A[Integer.parseInt(SC.next())-1] A Integer.parseInt(SC.next())-1 Integer.parseInt(SC.next()) Integer.parseInt Integer SC.next() SC.next SC 1 1 for(int i=0;i<N;i++){
            System.out.println(A[i]);
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            System.out.println(A[i]);
        } {
            System.out.println(A[i]);
        } System.out.println(A[i]) System.out.println System.out System System.out A[i] A i public static void main(String args[]){
        Main main = new Main();
    } main {
        Main main = new Main();
    } Main main = new Main(); main new Main() String args[] args
import java.util.*;

class Main{
    public Main(){
        Scanner SC = new Scanner(System.in);
        int N = Integer.parseInt(SC.next());
        int[] A = new int[N];
        for(int i=0;i<N-1;i++){
            A[Integer.parseInt(SC.next())-1] += 1;
        }
        for(int i=0;i<N;i++){
            System.out.println(A[i]);
        }
    }

    public static void main(String args[]){
        Main main = new Main();
    }
}
