import java.io.*;
import java.util.*;

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

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