import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	}

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

	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	}

} Main public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	} main {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int shine[] = new int[N]; shine new int[N] N for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	} int i = 1; int i = 1; i 1 i != N i N i++ i++ i {
		int A = scan.nextInt();
		shine[A-1]++;
	} {
		int A = scan.nextInt();
		shine[A-1]++;
	} int A = scan.nextInt(); A scan.nextInt() scan.nextInt scan shine[A-1]++ shine[A-1] shine A-1 A 1 for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	} int j = 0; int j = 0; j 0 j != N j N j++ j++ j {
		System.out.println(shine[j]);
	} {
		System.out.println(shine[j]);
	} System.out.println(shine[j]) System.out.println System.out System System.out shine[j] shine j String[] args args public class Main {

	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	}

} public class Main {

	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	}

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

	public static void main(String[] args) {
	Scanner scan = new Scanner(System.in);
	int N = scan.nextInt();
	int shine[] = new int[N];
	for(int i = 1;i != N; i++) {
		int A = scan.nextInt();
		shine[A-1]++;
	}
	
	for(int j = 0;j != N; j++) {
		System.out.println(shine[j]);
	}
	
	}

}
