import java.io.*;
import java.math.*;
import java.util.*;
public class Main {

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

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] freq = new int[(int)(2*(1e5)+1)];
		for (int i = 0; i < N-1; i++) {
			int x = input.nextInt();
			freq[x]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(freq[i]);
		}
	}
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] freq = new int[(int)(2*(1e5)+1)];
		for (int i = 0; i < N-1; i++) {
			int x = input.nextInt();
			freq[x]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(freq[i]);
		}
	} main {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] freq = new int[(int)(2*(1e5)+1)];
		for (int i = 0; i < N-1; i++) {
			int x = input.nextInt();
			freq[x]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(freq[i]);
		}
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input int[] freq = new int[(int)(2*(1e5)+1)]; freq new int[(int)(2*(1e5)+1)] (int)(2*(1e5)+1) 2*(1e5) 2 (1e5) 1 for (int i = 0; i < N-1; i++) {
			int x = input.nextInt();
			freq[x]++;
		} int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
			int x = input.nextInt();
			freq[x]++;
		} {
			int x = input.nextInt();
			freq[x]++;
		} int x = input.nextInt(); x input.nextInt() input.nextInt input freq[x]++ freq[x] freq x for (int i = 1; i <= N; i++) {
			System.out.println(freq[i]);
		} int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
			System.out.println(freq[i]);
		} {
			System.out.println(freq[i]);
		} System.out.println(freq[i]) System.out.println System.out System System.out freq[i] freq i String[] args args public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] freq = new int[(int)(2*(1e5)+1)];
		for (int i = 0; i < N-1; i++) {
			int x = input.nextInt();
			freq[x]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(freq[i]);
		}
	}
} public class Main {

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

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		int N = input.nextInt();
		int[] freq = new int[(int)(2*(1e5)+1)];
		for (int i = 0; i < N-1; i++) {
			int x = input.nextInt();
			freq[x]++;
		}
		for (int i = 1; i <= N; i++) {
			System.out.println(freq[i]);
		}
	}
}