import java.util.Scanner;

public class Main {

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

	}

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

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

	}

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

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

	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b[] = new int[a]; b new int[a] a int c = 0; c 0 for (int i = 0; i < b.length -1 ;i++) {
			c = s.nextInt();
			b[c - 1] += 1;
		} int i = 0; int i = 0; i 0 i < b.length -1 i b.length -1 b.length b b.length 1 i++ i++ i {
			c = s.nextInt();
			b[c - 1] += 1;
		} {
			c = s.nextInt();
			b[c - 1] += 1;
		} c = s.nextInt() c s.nextInt() s.nextInt s b[c - 1] += 1 b[c - 1] b c - 1 c 1 1 for(int j = 0; j < b.length; j++) {
			System.out.println(b[j]);
		} int j = 0; int j = 0; j 0 j < b.length j b.length b b.length 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 String[] args args public class Main {

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

	}

} public class Main {

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

	}

} Main
import java.util.Scanner;

public class Main {

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

	}

}