import java.util.HashMap;
import java.util.Scanner;

class Main{
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n-1];
		for(int i=0;i<n-1;i++)
			a[i] = sc.nextInt();
		int res[] = new int[n];
		for(int i=0;i<a.length;i++) {
			res[a[i]-1]=res[a[i]-1]+1;
		}
		for(int i=0;i<n;i++) {
			System.out.println(res[i]);
		}
	}
} import java.util.HashMap; HashMap java.util import java.util.Scanner; Scanner java.util class Main{
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n-1];
		for(int i=0;i<n-1;i++)
			a[i] = sc.nextInt();
		int res[] = new int[n];
		for(int i=0;i<a.length;i++) {
			res[a[i]-1]=res[a[i]-1]+1;
		}
		for(int i=0;i<n;i++) {
			System.out.println(res[i]);
		}
	}
} Main public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n-1];
		for(int i=0;i<n-1;i++)
			a[i] = sc.nextInt();
		int res[] = new int[n];
		for(int i=0;i<a.length;i++) {
			res[a[i]-1]=res[a[i]-1]+1;
		}
		for(int i=0;i<n;i++) {
			System.out.println(res[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int a[] = new int[n-1];
		for(int i=0;i<n-1;i++)
			a[i] = sc.nextInt();
		int res[] = new int[n];
		for(int i=0;i<a.length;i++) {
			res[a[i]-1]=res[a[i]-1]+1;
		}
		for(int i=0;i<n;i++) {
			System.out.println(res[i]);
		}
	} 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[n-1]; a new int[n-1] n-1 n 1 for(int i=0;i<n-1;i++)
			a[i] = sc.nextInt(); int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i a[i] = sc.nextInt(); a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc int res[] = new int[n]; res new int[n] n for(int i=0;i<a.length;i++) {
			res[a[i]-1]=res[a[i]-1]+1;
		} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
			res[a[i]-1]=res[a[i]-1]+1;
		} {
			res[a[i]-1]=res[a[i]-1]+1;
		} res[a[i]-1]=res[a[i]-1]+1 res[a[i]-1] res a[i]-1 a[i] a i 1 res[a[i]-1]+1 res[a[i]-1] res a[i]-1 a[i] a i 1 1 for(int i=0;i<n;i++) {
			System.out.println(res[i]);
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			System.out.println(res[i]);
		} {
			System.out.println(res[i]);
		} System.out.println(res[i]) System.out.println System.out System System.out res[i] res i String args[] args
import java.util.HashMap;
import java.util.Scanner;

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