import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int [] a = new int[n];
    for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    }

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

    for (int m=0; m<n; m++){
      System.out.println(a[m]);
    }
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int [] a = new int[n];
    for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    }

    for (int m=0; m<n; m++){
      System.out.println(a[m]);
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int [] a = new int[n];
    for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    }

    for (int m=0; m<n; m++){
      System.out.println(a[m]);
    }
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan int [] a = new int[n]; a new int[n] n for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
      int g =scan.nextInt();
      a[g-1] += 1;
    } {
      int g =scan.nextInt();
      a[g-1] += 1;
    } int g =scan.nextInt(); g scan.nextInt() scan.nextInt scan a[g-1] += 1 a[g-1] a g-1 g 1 1 for (int m=0; m<n; m++){
      System.out.println(a[m]);
    } int m=0; int m=0; m 0 m<n m n m++ m++ m {
      System.out.println(a[m]);
    } {
      System.out.println(a[m]);
    } System.out.println(a[m]) System.out.println System.out System System.out a[m] a m String[] args args public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int [] a = new int[n];
    for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    }

    for (int m=0; m<n; m++){
      System.out.println(a[m]);
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int [] a = new int[n];
    for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    }

    for (int m=0; m<n; m++){
      System.out.println(a[m]);
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int [] a = new int[n];
    for (int i=0; i<n-1;i++){
      int g =scan.nextInt();
      a[g-1] += 1;
    }

    for (int m=0; m<n; m++){
      System.out.println(a[m]);
    }
  }
}
