import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    } main {
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    } BufferedReader f = new BufferedReader(new InputStreamReader(System.in)); f new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int n = Integer.parseInt(f.readLine()); n Integer.parseInt(f.readLine()) Integer.parseInt Integer f.readLine() f.readLine f int[] freq = new int[n+1]; freq new int[n+1] n+1 n 1 StringTokenizer st = new StringTokenizer(f.readLine()); st new StringTokenizer(f.readLine()) for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        } int i = 0; int i = 0; i 0 i < n-1 i n-1 n 1 i++ i++ i {
            freq[Integer.parseInt(st.nextToken())]++;
        } {
            freq[Integer.parseInt(st.nextToken())]++;
        } freq[Integer.parseInt(st.nextToken())]++ freq[Integer.parseInt(st.nextToken())] freq Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            out.println(freq[i]);
        } {
            out.println(freq[i]);
        } out.println(freq[i]) out.println out freq[i] freq i out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    }
} public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException{
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        int n = Integer.parseInt(f.readLine());
        int[] freq = new int[n+1];
        StringTokenizer st = new StringTokenizer(f.readLine());
        for(int i = 0; i < n-1; i++){
            freq[Integer.parseInt(st.nextToken())]++;
        }
        for(int i = 1; i <= n; i++){
            out.println(freq[i]);
        }


        out.close();
    }
}
