
import java.util.*;

public class Main{

	public static void main(String[] args) {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		}
}

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

	public static void main(String[] args) {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		}
} Main public static void main(String[] args) {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		} main {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		} Scanner s = new Scanner(System.in); s new Scanner(System.in) int m = s.nextInt(); m s.nextInt() s.nextInt s int arr[] = new int[m - 1]; arr new int[m - 1] m - 1 m 1 int ans[] = new int[m]; ans new int[m] m for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			} int i = 0; int i = 0; i 0 i < m - 1 i m - 1 m 1 i++ i++ i {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			} {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			} arr[i] = s.nextInt() arr[i] arr i s.nextInt() s.nextInt s ans[arr[i] - 1]++ ans[arr[i] - 1] ans arr[i] - 1 arr[i] arr i 1 for (int i = 0; i < ans.length; i++) {
			System.out.println(ans[i]);
			} int i = 0; int i = 0; i 0 i < ans.length i ans.length ans ans.length i++ i++ i {
			System.out.println(ans[i]);
			} {
			System.out.println(ans[i]);
			} System.out.println(ans[i]) System.out.println System.out System System.out ans[i] ans i String[] args args public class Main{

	public static void main(String[] args) {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		}
} public class Main{

	public static void main(String[] args) {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		}
} Main

import java.util.*;

public class Main{

	public static void main(String[] args) {

	Scanner s = new Scanner(System.in);

		int m = s.nextInt();
			int arr[] = new int[m - 1];
		int ans[] = new int[m];
			for (int i = 0; i < m - 1; i++) {
				arr[i] = s.nextInt();
			ans[arr[i] - 1]++;
			}

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

		}
}


