import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);

int n =sc.nextInt();
int a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



}
} 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 a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



}
} Main public static void main(String[] args) {
Scanner sc=new Scanner(System.in);

int n =sc.nextInt();
int a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



} main {
Scanner sc=new Scanner(System.in);

int n =sc.nextInt();
int a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



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

int n =sc.nextInt();
int a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



}
} public class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);

int n =sc.nextInt();
int a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



}
} Main
import java.util.*;
public class Main
{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);

int n =sc.nextInt();
int a[]=new int[n];
int ans[]=new int[200000];
for(int i=1;i<n;i++)
a[i]=sc.nextInt();
for(int i=1;i<n;i++)
ans[a[i]]++;
for(int i=1;i<n;i++)
System.out.println(ans[i]);
System.out.println(0);



}
}