import java.util.*;

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

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