import java.util.Scanner;

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

public 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[] ans = new int[n + 1];
    for(int i = 0;i < n - 1;i++){
      a[i] = sc.nextInt();
      ans[a[i]]++;
    }
    for(int j = 1;j <= n;j++){
      System.out.println(ans[j]);
    }
  }
}