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();
    long[long] ans;
    foreach (i; 0 .. n - 1)
    {
        ans[a[i]] = ans.get(a[i], 0) + 1;
    }
    long cnt;
    foreach_reverse (key, value; ans)
    {
        writeln(value);
        cnt += 1;

    }
    long tmp = n - cnt;
    foreach (_; 0 .. tmp)
    {
        writeln(0);
    }

}
//https://rclone.org/

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