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

public class Main {

 public static void main(String[] args) {
     
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 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 import java.io.*; io.* java public class Main {

 public static void main(String[] args) {
     
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 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 in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 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 in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 1);
    }
    
    for(int i = 1; i <= N; i++){
        if(map.containsKey(i)) {
            System.out.println(map.get(i));
        }
        else {
            System.out.println(0);
        }
    }
    
  } Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in))); in new Scanner(new BufferedReader(new InputStreamReader(System.in))) int N = in.nextInt(); N in.nextInt() in.nextInt in HashMap<Integer,Integer> map = new HashMap(); map new HashMap() for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 1);
    } int i = 1; int i = 1; i 1 i <= N-1 i N-1 N 1 i++ i++ i {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 1);
    } {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 1);
    } int n = in.nextInt(); n in.nextInt() in.nextInt in if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 1); map.containsKey(n) map.containsKey map n map.put(n, map.get(n)+1) map.put map n map.get(n)+1 map.get(n) map.get map n 1 map.put(n, 1) map.put map n 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(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(0) System.out.println System.out System System.out 0 String[] args args public class Main {

 public static void main(String[] args) {
     
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 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 in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 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.*;
import java.io.*;

public class Main {

 public static void main(String[] args) {
     
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt(); // Scanner has functions to read ints, longs, strings, chars, etc.
    HashMap<Integer,Integer> map = new HashMap();
    //System.out.println(N);
    
    for(int i = 1; i <= N-1; i++) {
        int n = in.nextInt();
        if(map.containsKey(n)) map.put(n, map.get(n)+1);
        else map.put(n, 1);
    }
    
    for(int i = 1; i <= N; i++){
        if(map.containsKey(i)) {
            System.out.println(map.get(i));
        }
        else {
            System.out.println(0);
        }
    }
    
  }
  
}