import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	} main {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc int t=0; t 0 int b[]=new int[a-1]; b new int[a-1] a-1 a 1 for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		} int i=0; int i=0; i 0 i<a-1 i a-1 a 1 i++ i++ i {
			int k =sc.nextInt();
			b[k-1]++;
		} {
			int k =sc.nextInt();
			b[k-1]++;
		} int k =sc.nextInt(); k sc.nextInt() sc.nextInt sc b[k-1]++ b[k-1] b k-1 k 1 for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		} int j=0; int j=0; j 0 j<a-1 j a-1 a 1 j++ j++ j {	
			System.out.println(b[j]);
		} {	
			System.out.println(b[j]);
		} System.out.println(b[j]) System.out.println System.out System System.out b[j] b j System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a=sc.nextInt();
		int t=0;
		int b[]=new int[a-1];
		for(int i=0;i<a-1;i++) {
			int k =sc.nextInt();
			b[k-1]++;
		}
		for(int j=0;j<a-1;j++) {	
			System.out.println(b[j]);
		}
		System.out.println(0);


	}

}
