import java.util.Scanner;

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

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