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