import java.util.*;

public class Main {

    
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    }
} import java.util.*; util.* java public class Main {

    
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.valueOf(scan.nextLine()); n Integer.valueOf(scan.nextLine()) Integer.valueOf Integer scan.nextLine() scan.nextLine scan String[] subs = scan.nextLine().split(" "); subs scan.nextLine().split(" ") scan.nextLine().split scan.nextLine() scan.nextLine scan " " HashMap<Integer, Integer> map = new HashMap<>(); map new HashMap<>() for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        } int i = 0; int i = 0; i 0 i < subs.length i subs.length subs subs.length i++ i++ i {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        } {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        } int val = Integer.valueOf(subs[i]); val Integer.valueOf(subs[i]) Integer.valueOf Integer subs[i] subs i if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1); map.containsKey(val) map.containsKey map val map.replace(val, map.get(val) + 1) map.replace map val map.get(val) + 1 map.get(val) map.get map val 1 map.put(val, 1) map.put map val 1 for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        } int i = 1; int i = 1; i 1 i <= n i n i++ i++ i {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        } {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        } if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0); map.containsKey(i) map.containsKey map i System.out.println(map.get(i)) System.out.println System.out System System.out map.get(i) map.get map i System.out.println(0) System.out.println System.out System System.out 0 String[] args args public class Main {

    
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    }
} public class Main {

    
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    }
} Main
import java.util.*;

public class Main {

    
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = Integer.valueOf(scan.nextLine());
        String[] subs = scan.nextLine().split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i = 0; i < subs.length; i++) {
            int val = Integer.valueOf(subs[i]);
            if (map.containsKey(val)) map.replace(val, map.get(val) + 1);
            else map.put(val, 1);
        }
        
        for (int i = 1; i <= n; i++) {
            if (map.containsKey(i)) System.out.println(map.get(i));
            else System.out.println(0);
        }
    }
}