
import java.util.*;

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

	
} import java.util.*; util.* java public class Main {// Main
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
   int n = sc.nextInt();
   int[] dp = new int[n+1];
     for(int i = 0 ; i < n-1 ; i++) {
    	 dp[sc.nextInt()]++;
     }
     for(int i = 1 ; i <= n ; i++) {
    	System.out.println(dp[i]);
     }
	}

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

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

	
} Main

import java.util.*;

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

	
}