#include<bits/stdc++.h>
#define watch(x) cout << (#x) << " is " << (x) << endl
typedef long long ll;
using namespace std;
int static fast = [](){
  ios::sync_with_stdio(false);
  cin.tie(0); cout.tie(0); return 0;
}();
// freopen("input.txt", "r", stdin);

int main() {
    int n, val;
    cin >> n;
    vector<int> arr(n+1, 0);
    for(int i = 0; i < n-1; i++) {
        cin >> val;
        arr[val] += 1;
    }
    for(int i = 1; i <= n; i++)
        cout << arr[i] << endl;
    return 0;
}

