import java.io.*;

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

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		}

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

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			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));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		}

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

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			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)) String str = reader.readLine(); str reader.readLine() reader.readLine reader int N = Integer.parseInt(str); N Integer.parseInt(str) Integer.parseInt Integer str 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 String a = reader.readLine(); a reader.readLine() reader.readLine reader String[] data = a.split(" "); data a.split(" ") a.split a " " for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		} {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		} int count = Integer.parseInt(data[i]); count Integer.parseInt(data[i]) Integer.parseInt Integer data[i] data i 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));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			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));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		}

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

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

		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

		String str = reader.readLine();
		int N = Integer.parseInt(str);

		int A[] = new int[N];

		for (int i = 0; i < N; i++) {
			A[i] = 0;
		}
		
		String a = reader.readLine();//行を読み込む
      	String[] data = a.split(" ");//スペース区切りで配列に格納
		for (int i = 0; i < N - 1; i++) {
			int count = Integer.parseInt(data[i]);//dataのi番目をintに変換
			A[count - 1]++;
		}

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