import java.util.Scanner;

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

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