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