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[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[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[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[i]);
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] shine = new int[n]; shine new int[n] n for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        } int i = 0; int i = 0; i 0 i < shine.length i shine.length shine shine.length i++ i++ i {
            shine[i] = 0;
        } {
            shine[i] = 0;
        } shine[i] = 0 shine[i] shine i 0 for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        } int i = 0; int i = 0; i 0 i < shine.length - 1 i shine.length - 1 shine.length shine shine.length 1 i++ i++ i {
            int j = sc.nextInt() - 1;
            shine[j]++;
        } {
            int j = sc.nextInt() - 1;
            shine[j]++;
        } int j = sc.nextInt() - 1; j sc.nextInt() - 1 sc.nextInt() sc.nextInt sc 1 shine[j]++ shine[j] shine j for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[i]);
        } int i = 0; int i = 0; i 0 i < shine.length i shine.length shine shine.length i++ i++ i {
            System.out.println(shine[i]);
        } {
            System.out.println(shine[i]);
        } System.out.println(shine[i]) System.out.println System.out System System.out shine[i] shine 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[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[i]);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[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[] shine = new int[n];
        
        for (int i = 0; i < shine.length; i++) {
            shine[i] = 0;
        }
        
        for (int i = 0; i < shine.length - 1; i++) {
            int j = sc.nextInt() - 1;
            shine[j]++;
        }
        
        for (int i = 0; i < shine.length; i++) {
            System.out.println(shine[i]);
        }
    }
}
