#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
int n;
int res[200000 + 20];
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 1; i <= n - 1; ++i) {
    int a;
    cin >> a;
    res[a]++;
  }
  for (int i = 1; i <= n; ++i) cout << res[i] << endl;
  return 0;
}
