import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

		for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.HashMap; HashMap java.util public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

		for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

		for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

		for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String str[] = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int value[] = new int[n]; value new int[n] n for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		} int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		} {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		} int a = Integer.parseInt(str[i]); a Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i value[a - 1]++ value[a - 1] value a - 1 a 1 for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			System.out.println(value[i]);
		} {
			System.out.println(value[i]);
		} System.out.println(value[i]) System.out.println System.out System System.out value[i] value i String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

		for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

		for (int i = 0; i < n; i++) {
			System.out.println(value[i]);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int n = Integer.parseInt(br.readLine());

		String str[] = br.readLine().split(" ");

		int value[] = new int[n];

		for (int i = 0; i < n - 1; i++) {
			int a = Integer.parseInt(str[i]);

			value[a - 1]++;
		}

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