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