    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;

    public class Main {

        public static void main(String[] args) throws IOException {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        }
    } import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

        public static void main(String[] args) throws IOException {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        }
    } Main public static void main(String[] args) throws IOException {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        } main {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String [] line = br.readLine().split( " "); line br.readLine().split( " ") br.readLine().split br.readLine() br.readLine br " " int [] count = new int[N+1]; count new int[N+1] N+1 N 1 for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            } int i = 0; int i = 0; i 0 i < line.length i line.length line line.length i++ i++ i {
                count[Integer.parseInt(line[i])]++;
            } {
                count[Integer.parseInt(line[i])]++;
            } count[Integer.parseInt(line[i])]++ count[Integer.parseInt(line[i])] count Integer.parseInt(line[i]) Integer.parseInt Integer line[i] line i for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            } int i = 1; int i = 1; i 1 i < count.length i count.length count count.length i++ i++ i {
                System.out.println(count[i]);
            } {
                System.out.println(count[i]);
            } System.out.println(count[i]) System.out.println System.out System System.out count[i] count i String[] args args public class Main {

        public static void main(String[] args) throws IOException {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        }
    } public class Main {

        public static void main(String[] args) throws IOException {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        }
    } Main
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;

    public class Main {

        public static void main(String[] args) throws IOException {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            int N = Integer.parseInt(br.readLine());
            String [] line = br.readLine().split( " ");
            int [] count = new int[N+1];

            for(int i = 0; i < line.length; i++){
                count[Integer.parseInt(line[i])]++;
            }

            for(int i = 1; i < count.length; i++){
                System.out.println(count[i]);
            }
        }
    }