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

public final class Main
{
    public static void main (String[] args) throws java.lang.Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    }
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public final class Main
{
    public static void main (String[] args) throws java.lang.Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    }
} Main public static void main (String[] args) throws java.lang.Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    } main {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int[] arr = new int[n]; arr new int[n] n for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        } int i =0; int i =0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
          int v = in.nextInt();
          arr[v-1]++;
        } {
          int v = in.nextInt();
          arr[v-1]++;
        } int v = in.nextInt(); v in.nextInt() in.nextInt in arr[v-1]++ arr[v-1] arr v-1 v 1 for(int i =0; i< n; i++)
         System.out.println(arr[i]); int i =0; int i =0; i 0 i< n i n i++ i++ i System.out.println(arr[i]); System.out.println(arr[i]) System.out.println System.out System System.out arr[i] arr i String[] args args public final class Main
{
    public static void main (String[] args) throws java.lang.Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    }
} public final class Main
{
    public static void main (String[] args) throws java.lang.Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    }
} Main
import java.util.*;
import java.lang.*;
import java.io.*;

public final class Main
{
    public static void main (String[] args) throws java.lang.Exception {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int[] arr = new int[n];
        for(int i =0; i<n-1; i++){
          int v = in.nextInt();
          arr[v-1]++;
        }
       
       for(int i =0; i< n; i++)
         System.out.println(arr[i]);


    }
}