import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	}


} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	}


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

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	} main {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int array[] = new int[n]; array new int[n] n int val = 0; val 0 for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		} int l = 0; int l = 0; l 0 l < n-1 l n-1 n 1 l++ l++ l {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		} {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		} val = sc.nextInt() val sc.nextInt() sc.nextInt sc array[val-1] = array[val-1]+1 array[val-1] array val-1 val 1 array[val-1]+1 array[val-1] array val-1 val 1 1 for(int l:array) {
			System.out.println(l);
		} int l array {
			System.out.println(l);
		} {
			System.out.println(l);
		} System.out.println(l) System.out.println System.out System System.out l String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	}


} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	}


} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();

		int array[] = new int[n];

		int val = 0;

		for (int l = 0; l < n-1; l++) {
			val = sc.nextInt();
			array[val-1] = array[val-1]+1;
		}

		for(int l:array) {
			System.out.println(l);
		}

	}


}
