import std;

alias sread = () => readln.chomp();
alias lread = () => readln.chomp.to!long();
alias aryread(T = long) = () => readln.split.to!(T[]);

void main()
{
    auto n = lread();
    auto a = aryread();
    auto ans = new long[](2 * (10 ^^ 5) + 10);
    foreach (i; 0 .. n - 1)
    {
        ans[a[i]] += 1;
    }
    foreach (i; 1 .. n + 1)
    {
        writeln(ans[i]);

    }

}
//https://rclone.org/

void scan(L...)(ref L A)
{
    auto l = readln.split;
    foreach (i, T; L)
    {
        A[i] = l[i].to!T;
    }
}
