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