import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

		for(i = 0; i < n; i++) {
			System.out.println(num[i]);
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

		for(i = 0; i < n; i++) {
			System.out.println(num[i]);
		}
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

		for(i = 0; i < n; i++) {
			System.out.println(num[i]);
		}
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

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

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

		for(i = 0; i < n; i++) {
			System.out.println(num[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

		for(i = 0; i < n; i++) {
			System.out.println(num[i]);
		}
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[] a = new int[n-1];
		int[] num = new int[n];

		int i = 0;
		while(i < n-1) {
			a[i] = sc.nextInt();
			num[i] = 0;
			i++;
		}

		num[n-1] = 0;

		for(i = 0; i < n-1; i++) {
			num[a[i]-1]++;
		}

		for(i = 0; i < n; i++) {
			System.out.println(num[i]);
		}
	}

}