import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;
    int a[];

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;
    int a[];

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    }
} Main // 変数一覧
    int n; n int a[]; a public static void main(String[] args) {
        Main main = new Main();
        main.run();
    } main {
        Main main = new Main();
        main.run();
    } Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    } run {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc a = new int[n] a new int[n] n for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
            a[i] = sc.nextInt();
        } {
            a[i] = sc.nextInt();
        } a[i] = sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc sc.close() sc.close sc solve() solve private void solve() {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    } solve {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    } int[] s = new int[n]; s new int[n] n Arrays.fill(s, 0) Arrays.fill Arrays s 0 for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        } int i = 0; int i = 0; i 0 i < a.length-1 i a.length-1 a.length a a.length 1 i++ i++ i {
            s[a[i] - 1]++;
        } {
            s[a[i] - 1]++;
        } s[a[i] - 1]++ s[a[i] - 1] s a[i] - 1 a[i] a i 1 for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        } int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
            System.out.println(s[i]);            
        } {
            System.out.println(s[i]);            
        } System.out.println(s[i]) System.out.println System.out System System.out s[i] s i public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;
    int a[];

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;
    int a[];

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.run();
    }
    
    // 変数一覧
    int n;
    int a[];

    public void run() {
        // 入力情報取得
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        a = new int[n];
        for (int i = 0; i < n-1; i++) {
            a[i] = sc.nextInt();
        }
        sc.close();

        // 解答処理
        solve();
    }
    
    private void solve() {
        int[] s = new int[n];
        Arrays.fill(s, 0);
        for (int i = 0; i < a.length-1; i++) {
            s[a[i] - 1]++;
        }
        for (int i = 0; i < s.length; i++) {
            System.out.println(s[i]);            
        }
    }
}