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