import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	}
} 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 A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int A [] = new int[200001]; A new int[200001] 200001 int j = 0; j 0 for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		} int i =1; int i =1; i 1 i<N i N i++ i++ i {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		} {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		} j = sc.nextInt() j sc.nextInt() sc.nextInt sc A[j] = A[j]+1 A[j] A j A[j]+1 A[j] A j 1 j++ j for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		} int i=1; int i=1; i 1 i<N+1 i N+1 N 1 i++ i++ i {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		} {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		} if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			} A[i] > 0 A[i] A i 0 {
				System.out.println(A[i]);
			} System.out.println(A[i]) System.out.println System.out System System.out A[i] A i {
				A[i] = 0;
				System.out.println(A[i]);
			} A[i] = 0 A[i] A i 0 System.out.println(A[i]) System.out.println System.out System System.out A[i] A i sc.close() sc.close sc String args[] args public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	}
} public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	}
} 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 A [] = new int[200001];
		int j = 0;
		
		for(int i =1; i<N; i++) {
			j = sc.nextInt();
			A[j] = A[j]+1;
			j++;
		}
		
		for(int i=1; i<N+1; i++) {
			if(A[i] > 0) {
				System.out.println(A[i]);
			}else{
				A[i] = 0;
				System.out.println(A[i]);
			}
		}
		
		sc.close();
	}
}