#include <bits/stdc++.h>
using namespace std;
long long n, a[200010], b;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (long long i = 1; i < n; i++) cin >> b, a[b]++;
  for (long long i = 1; i <= n; i++) cout << a[i] << "\n";
  return 0;
}
