import java.util.*;
import java.io.*;
public class Main
{
  public static void main(String args[])throws Exception
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main
{
  public static void main(String args[])throws Exception
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  }
} Main public static void main(String args[])throws Exception
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  } main {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter pw=new PrintWriter(System.out); pw new PrintWriter(System.out) int n=Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String str[]=br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int boss[]=new int[n+1]; boss new int[n+1] n+1 n 1 for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++; int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i boss[Integer.parseInt(str[i])]++; boss[Integer.parseInt(str[i])]++ boss[Integer.parseInt(str[i])] boss Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i for(int i=1;i<=n;i++)
    pw.println(boss[i]); int i=1; int i=1; i 1 i<=n i n i++ i++ i pw.println(boss[i]); pw.println(boss[i]) pw.println pw boss[i] boss i pw.flush() pw.flush pw pw.close() pw.close pw String args[] args public class Main
{
  public static void main(String args[])throws Exception
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  }
} public class Main
{
  public static void main(String args[])throws Exception
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  }
} Main
import java.util.*;
import java.io.*;
public class Main
{
  public static void main(String args[])throws Exception
  {
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    PrintWriter pw=new PrintWriter(System.out);
    int n=Integer.parseInt(br.readLine());
    String str[]=br.readLine().split(" ");
    int boss[]=new int[n+1];
    for(int i=0;i<n-1;i++)
    boss[Integer.parseInt(str[i])]++;
    for(int i=1;i<=n;i++)
    pw.println(boss[i]);
    pw.flush();
    pw.close();
  }
}