#include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

int main() {
    int n;
    cin >> n;
    vector<int>a(n-1);
    vector<int>b(n-1);
    for (int i = 0; i < n-1; i++) {
        cin >> a.at(i);
        a.at(i) = a.at(i) - 1;
        b.at(i) = 0;
    }
    sort(a.begin(), a.end());
    for (int i = 0; i < n-1; i++) {
        b.at(a.at(i))++;
    }
    for (int i = 0; i < n - 1; i++) {
        cout << b.at(i) << endl;
    }
    cout << 0<<endl;
}