#include <bits/stdc++.h>
using namespace std;
mt19937 mrand(random_device{}());
auto clk = clock();
const long long mod = 1000000007;
int rnd(int x) { return mrand() % x; }
long long powmod(long long a, long long b) {
  long long res = 1;
  a %= mod;
  assert(b >= 0);
  for (; b; b >>= 1) {
    if (b & 1) res = res * a % mod;
    a = a * a % mod;
  }
  return res;
}
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
const long long infl = 0x3f3f3f3f3f3f3f3fLL;
const int infi = 0x3f3f3f3f;
int main() {
  int i, n, freq[200005];
  memset(freq, 0, sizeof(freq));
  cin >> n;
  for (i = 1; i < n; i++) {
    int x;
    cin >> x;
    freq[x - 1]++;
  }
  for (i = 0; i < n; i++) cout << freq[i] << "\n";
  return 0;
}
