import java.util.Scanner;

/**
 * C - management
 */
public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner( System.in );
        // 社員数
        int n = sc.nextInt();
        // 社員番号
        int[] a = new int[n];
        for( int i = 1; i < n; i++ ) {
            int member = sc.nextInt();
            a[member - 1]++;
        }

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

        sc.close();
    }
} import java.util.Scanner; Scanner 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];
        for( int i = 1; i < n; i++ ) {
            int member = sc.nextInt();
            a[member - 1]++;
        }

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

        sc.close();
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner( System.in );
        // 社員数
        int n = sc.nextInt();
        // 社員番号
        int[] a = new int[n];
        for( int i = 1; i < n; i++ ) {
            int member = sc.nextInt();
            a[member - 1]++;
        }

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

        sc.close();
    } main {

        Scanner sc = new Scanner( System.in );
        // 社員数
        int n = sc.nextInt();
        // 社員番号
        int[] a = new int[n];
        for( int i = 1; i < n; i++ ) {
            int member = sc.nextInt();
            a[member - 1]++;
        }

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

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

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

        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];
        for( int i = 1; i < n; i++ ) {
            int member = sc.nextInt();
            a[member - 1]++;
        }

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

        sc.close();
    }
} Main
import java.util.Scanner;

/**
 * C - management
 */
public class Main {

    public static void main(String[] args) {

        Scanner sc = new Scanner( System.in );
        // 社員数
        int n = sc.nextInt();
        // 社員番号
        int[] a = new int[n];
        for( int i = 1; i < n; i++ ) {
            int member = sc.nextInt();
            a[member - 1]++;
        }

        // 結果：それぞれの直属の部下の人数
        for( int i = 0; i < n; i++ ) {
            System.out.println( a[i] );
        }

        sc.close();
    }
}
