import std.algorithm;
import std.conv;
import std.math;
import std.range;
import std.stdio;
import std.string;
import std.typecons;

void main() {
  int n;
  readf (" %d", &n);
  auto a = new int[n];
  auto c = new int[n];
  foreach (i; 1 .. n) {
    readf (" %d", a[i]);
    ++c[a[i] - 1];
  }
  writefln!"%(%s\n%)"(c);
}

