//デバッグ用

import java.io.*;
import java.util.Scanner;//スキャナつかう

public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

		for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		}
	}
} import java.io.*; io.* java import java.util.Scanner;//スキャナつかう Scanner java.util public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

		for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		}
	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

		for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		}
	} main {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

		for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int A[] = new int[N]; A new int[N] N for (int i = 0; i < N; i++) {
			A[i] = 0;
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			A[i] = 0;
        } {
			A[i] = 0;
        } A[i] = 0 A[i] A i 0 for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
			int count = scan.nextInt();
			A[count - 1]++;
		} {
			int count = scan.nextInt();
			A[count - 1]++;
		} int count = scan.nextInt(); count scan.nextInt() scan.nextInt scan A[count - 1]++ A[count - 1] A count - 1 count 1 for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			System.out.println(A[i]);
		} {
			System.out.println(A[i]);
		} System.out.println(A[i]) System.out.println System.out System System.out A[i] A i String[] args args public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

		for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

		for (int i = 0; i < N; i++) {
			System.out.println(A[i]);
		}
	}
} Main
//デバッグ用

import java.io.*;
import java.util.Scanner;//スキャナつかう

public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      	Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
        }
      
		for (int i = 0; i < N - 1; i++) {
			int count = scan.nextInt();
			A[count - 1]++;
		}

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