import java.util.*; 
class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
       
  		int[] a=new int[n];
		for(int c=0;c<n-1;c++){
    		a[sc.nextInt()-1]++;
          }
  
    for(int ans: a){
    System.out.println(ans);
    }
  
    }

} import java.util.*; util.* java class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
       
  		int[] a=new int[n];
		for(int c=0;c<n-1;c++){
    		a[sc.nextInt()-1]++;
          }
  
    for(int ans: a){
    System.out.println(ans);
    }
  
    }

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

}
