#include <bits/stdc++.h>
using namespace std;
long long n, A[10000005], dem = 0, i, j, d[1000001];
int main() {
  cin >> n;
  for (i = 2; i <= n; i++) cin >> A[i];
  for (i = 2; i <= n; i++) d[A[i]]++;
  for (i = 1; i <= n; i++) cout << d[i] << endl;
}
