import java.util.Scanner;
class Main{
public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 int N = scan.nextInt();
 int work[] = new int[N];
  for (int i = 0; i < N-1; i++){
    int a = scan.nextInt();
    work[a-1] += 1;
  }
  for (int j = 0; j < N  ; j++){
    System.out.println(work[j]);
    }
 }
} import java.util.Scanner; Scanner java.util class Main{
public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 int N = scan.nextInt();
 int work[] = new int[N];
  for (int i = 0; i < N-1; i++){
    int a = scan.nextInt();
    work[a-1] += 1;
  }
  for (int j = 0; j < N  ; j++){
    System.out.println(work[j]);
    }
 }
} Main public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 int N = scan.nextInt();
 int work[] = new int[N];
  for (int i = 0; i < N-1; i++){
    int a = scan.nextInt();
    work[a-1] += 1;
  }
  for (int j = 0; j < N  ; j++){
    System.out.println(work[j]);
    }
 } main {
 Scanner scan = new Scanner(System.in);
 
 int N = scan.nextInt();
 int work[] = new int[N];
  for (int i = 0; i < N-1; i++){
    int a = scan.nextInt();
    work[a-1] += 1;
  }
  for (int j = 0; j < N  ; j++){
    System.out.println(work[j]);
    }
 } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int work[] = new int[N]; work new int[N] N for (int i = 0; i < N-1; i++){
    int a = scan.nextInt();
    work[a-1] += 1;
  } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
    int a = scan.nextInt();
    work[a-1] += 1;
  } {
    int a = scan.nextInt();
    work[a-1] += 1;
  } int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan work[a-1] += 1 work[a-1] work a-1 a 1 1 for (int j = 0; j < N  ; j++){
    System.out.println(work[j]);
    } int j = 0; int j = 0; j 0 j < N j N j++ j++ j {
    System.out.println(work[j]);
    } {
    System.out.println(work[j]);
    } System.out.println(work[j]) System.out.println System.out System System.out work[j] work j String[] args args
import java.util.Scanner;
class Main{
public static void main(String[] args){
 Scanner scan = new Scanner(System.in);
 
 int N = scan.nextInt();
 int work[] = new int[N];
  for (int i = 0; i < N-1; i++){
    int a = scan.nextInt();
    work[a-1] += 1;
  }
  for (int j = 0; j < N  ; j++){
    System.out.println(work[j]);
    }
 }
}