import 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[n+1];
		for(int i = 0; i<n-1; i++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		sc.close();		
	}

} import java.util.*; util.* java public 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++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		sc.close();		
	}

} 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++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		sc.close();		
	} 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++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		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[n+1]; a new int[n+1] n+1 n 1 for(int i = 0; i<n-1; i++) {
			int x = sc.nextInt();
			a[x]++;
		} int i = 0; int i = 0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
			int x = sc.nextInt();
			a[x]++;
		} {
			int x = sc.nextInt();
			a[x]++;
		} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc a[x]++ a[x] a x for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		} int j= 1; int j= 1; j 1 j<=n j n j++ j++ j {
			System.out.println(a[j]);
		} {
			System.out.println(a[j]);
		} System.out.println(a[j]) System.out.println System.out System System.out a[j] a j 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[n+1];
		for(int i = 0; i<n-1; i++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		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[n+1];
		for(int i = 0; i<n-1; i++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		sc.close();		
	}

} Main
import 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[n+1];
		for(int i = 0; i<n-1; i++) {
			int x = sc.nextInt();
			a[x]++;
		}
		for(int j= 1; j<=n ;j++){
			System.out.println(a[j]);
		}
		sc.close();		
	}

}