import java.util.Scanner;

public class Main {
	

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	}
} import java.util.Scanner; Scanner java.util public class Main {
	

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	} main {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] id = new int[n-1]; id new int[n-1] n-1 n 1 int[] times = new int[n+1]; times new int[n+1] n+1 n 1 for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        } int i = 0; int i = 0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        } {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        } id[i] = sc.nextInt() id[i] id i sc.nextInt() sc.nextInt sc times[id[i]]++ times[id[i]] times id[i] id i for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        } int i = 1; int i = 1; i 1 i<=n i n i++ i++ i {
        	System.out.println(times[i]);
        } {
        	System.out.println(times[i]);
        } System.out.println(times[i]) System.out.println System.out System System.out times[i] times i String[] args args public class Main {
	

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	}
} public class Main {
	

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	}
} Main
import java.util.Scanner;

public class Main {
	

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        //int x = sc.nextInt();
        int n = sc.nextInt();
        int[] id = new int[n-1];
        int[] times = new int[n+1];
        //int[] d = new int[102];
        
        for(int i = 0; i<n-1;i++) {
        	id[i] = sc.nextInt();
        	times[id[i]]++;
        }
        
        for(int i = 1; i<=n; i++) {
        	System.out.println(times[i]);
        }
        
        
        
        
        
        
        
        //System.out.print(ans);
        
	}
}