import std.stdio, std.conv, std.string, std.algorithm,
       std.math, std.array, std.container, std.typecons;

void main() {
  long n = readln.chomp.to!long;
  long[] a = readln.chomp.split.to!(long[]);
  long[] count = new long[n];
  foreach(ai;a) count[ai-1]++;
  foreach(ci;count) writeln(ci);
}
