import std;

void main() {
    int n; scan(n);
    auto a = readints;

    int[int] d;
    foreach (x; a) d[x]++;
    for (int i = 1; i <= n; i++) {
        writeln(d.get(i, 0));
    }
}

void scan(T...)(ref T a) {
    string[] ss = readln.split;
    foreach (i, t; T) a[i] = ss[i].to!t;
}
T read(T)() { return readln.chomp.to!T; }
T[] reads(T)() { return readln.split.to!(T[]); }
alias readint = read!int;
alias readints = reads!int;
