import java.util.*;

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

class Main
{
  public static void main(String[] args)
  {
    Scanner stdIn = new Scanner(System.in);
    int n = stdIn.nextInt();
    int ans[] = new int[n];
    
    for(int i = 0; i < n; i++)
    {
      ans[i] = 0;
    }
    
    for(int i = 0; i < n-1; i++){
      ans[stdIn.nextInt()-1] ++;
    }
    
    for(int i = 0; i < n; i++){
      System.out.println(ans[i]);
    }
  }
}
