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