import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	}
} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	} main {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] A = new int[N - 1]; A new int[N - 1] N - 1 N 1 int[] ans = new int[N]; ans new int[N] N for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i ++ i ++ i {
			A[i] = stdIn.nextInt();
		} {
			A[i] = stdIn.nextInt();
		} A[i] = stdIn.nextInt() A[i] A i stdIn.nextInt() stdIn.nextInt stdIn for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		} int i = 0; int i = 0; i 0 i < N i N i ++ i ++ i {
			ans[i] = 0;
		} {
			ans[i] = 0;
		} ans[i] = 0 ans[i] ans i 0 for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		} int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i ++ i ++ i {
			ans[A[i] - 1] ++;
		} {
			ans[A[i] - 1] ++;
		} ans[A[i] - 1] ++ ans[A[i] - 1] ans A[i] - 1 A[i] A 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) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] A = new int[N - 1];
		int[] ans = new int[N];
		for(int i = 0; i < N - 1; i ++) {
			A[i] = stdIn.nextInt();
		}
		for(int i = 0; i < N; i ++) {
			ans[i] = 0;
		}
		for(int i = 0; i < A.length; i ++) {
			ans[A[i] - 1] ++;
		}
		
		for(int i = 0; i < ans.length; i ++) {
			System.out.println(ans[i]);
		}
	}
}