import java.util.Scanner;

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

    int[] count = new int[N];
    for(int i=0; i<N-1; i++) {
      count[A[i]-1]++;
    }
    for(int i=0; i<N; i++) {
      System.out.println(count[i]);
    }
  }
} import java.util.Scanner; Scanner 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-1];
    for(int i=0; i<N-1; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

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

    int[] count = new int[N];
    for(int i=0; i<N-1; i++) {
      count[A[i]-1]++;
    }
    for(int i=0; i<N; i++) {
      System.out.println(count[i]);
    }
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int[] A = new int[N-1];
    for(int i=0; i<N-1; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

    int[] count = new int[N];
    for(int i=0; i<N-1; i++) {
      count[A[i]-1]++;
    }
    for(int i=0; i<N; i++) {
      System.out.println(count[i]);
    }
  } 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-1]; A new int[N-1] N-1 N 1 for(int i=0; i<N-1; i++) {
      A[i] = scan.nextInt();
    } int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
      A[i] = scan.nextInt();
    } {
      A[i] = scan.nextInt();
    } A[i] = scan.nextInt() A[i] A i scan.nextInt() scan.nextInt scan scan.close() scan.close scan int[] count = new int[N]; count new int[N] N for(int i=0; i<N-1; i++) {
      count[A[i]-1]++;
    } int i=0; int i=0; i 0 i<N-1 i N-1 N 1 i++ i++ i {
      count[A[i]-1]++;
    } {
      count[A[i]-1]++;
    } count[A[i]-1]++ count[A[i]-1] count A[i]-1 A[i] A i 1 for(int i=0; i<N; i++) {
      System.out.println(count[i]);
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      System.out.println(count[i]);
    } {
      System.out.println(count[i]);
    } System.out.println(count[i]) System.out.println System.out System System.out count[i] count i 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-1];
    for(int i=0; i<N-1; i++) {
      A[i] = scan.nextInt();
    }
    scan.close();

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

    int[] count = new int[N];
    for(int i=0; i<N-1; i++) {
      count[A[i]-1]++;
    }
    for(int i=0; i<N; i++) {
      System.out.println(count[i]);
    }
  }
} Main
import java.util.Scanner;

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

    int[] count = new int[N];
    for(int i=0; i<N-1; i++) {
      count[A[i]-1]++;
    }
    for(int i=0; i<N; i++) {
      System.out.println(count[i]);
    }
  }
}