#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <map>
#include <cmath>
#include <bitset>
#include <string>
#include <queue>

using namespace std;

#define int long long

signed main() {
    int n;
    cin >> n;
    vector<int> v(n, 0);
    for(int i = 0; i < n - 1; i++) {
        int m;
        cin >> m;
        v[m - 1]++;
    }

    for(int i = 0; i < n; i++) {
        cout << v[i] << endl;
    }
    return 0;
}