/* package codechef; // don't place package name! */

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



/* Name of the class has to be "Main" only if the class is public. */
public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
    
    public static void solve()
    {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    }
    

    
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
    
    public static void solve()
    {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    }
    

    
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} Main static Scanner in = new Scanner(System.in); in new Scanner(System.in) public static void solve()
    {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    } solve {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    } int n=in.nextInt(); n in.nextInt() in.nextInt in int[] a = new int[n-1]; a new int[n-1] n-1 n 1 for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
            a[i]=in.nextInt();
        } {
            a[i]=in.nextInt();
        } a[i]=in.nextInt() a[i] a i in.nextInt() in.nextInt in int[] ans= new int[n+1]; ans new int[n+1] n+1 n 1 for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
            ans[a[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(ans[i]) System.out.println System.out System System.out ans[i] ans i public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	} main {
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	} int t=1; t 1 while(t>0)
		{
		    
		    solve();
		    t--;
		} t>0 t 0 {
		    
		    solve();
		    t--;
		} solve() solve t-- t String[] args args public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
    
    public static void solve()
    {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    }
    

    
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
    
    public static void solve()
    {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    }
    

    
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
} Main
/* package codechef; // don't place package name! */

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



/* Name of the class has to be "Main" only if the class is public. */
public class Main
 
 
{
    static Scanner in = new Scanner(System.in);
    
    public static void solve()
    {
        int n=in.nextInt();
        int[] a = new int[n-1];
        for(int i=0;i<n-1;i++)
        {
            a[i]=in.nextInt();
        }
        
        int[] ans= new int[n+1];
        
        for(int i=0;i<n-1;i++)
        {
            ans[a[i]]++;
        }
        
        for(int i=1;i<=n;i++)
        {
            System.out.println(ans[i]);
        }
        
        
        
    }
    

    
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		int t=1;
		//in.nextLine();
		
		while(t>0)
		{
		    
		    solve();
		    t--;
		}
		
		
	
	//	System.out.println(x);
	}
}
