using System;
using System.Linq;
using System.Collections.Generic;

using E = System.Linq.Enumerable;

public class Program
{
    public static void Main()
    {
        var n = int.Parse(Console.ReadLine());
        var seqA = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();

        var s = new int[seqA.Length + 1];
        for (int i = 0; i < seqA.Length; ++i)
        {
            ++s[seqA[i] - 1];
        }

        Console.WriteLine(string.Join(Environment.NewLine, s));
    }
}
