import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int No = 0; No 0 int[] buka = new int[N+1]; buka new int[N+1] N+1 N 1 while(sc.hasNext()){
        buka[sc.nextInt()]++;
    } sc.hasNext() sc.hasNext sc {
        buka[sc.nextInt()]++;
    } buka[sc.nextInt()]++ buka[sc.nextInt()] buka sc.nextInt() sc.nextInt sc for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    } int i = 1; int i = 1; i 1 i <= N i N i++ i++ i {
        System.out.println(buka[i]);
    } {
        System.out.println(buka[i]);
    } System.out.println(buka[i]) System.out.println System.out System System.out buka[i] buka i String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int No = 0;
    int[] buka = new int[N+1];
    while(sc.hasNext()){
        buka[sc.nextInt()]++;
    }
    for(int i = 1;i <= N;i++){
        System.out.println(buka[i]);
    }
  }
}