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