#include <iostream>
#include <vector>
#include <array>
#include <algorithm>
#include <cstring>
#include <queue>
#include <iomanip>
#include <numeric>
#include <cmath>
#include <cstdlib>
#include <sstream>
#include <bitset>

using namespace std;

//#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))

typedef long long ll;
//typedef pair<ll, ll> P;

//static const ll MOD = 1000000007;
//static const ll INF = 100000000;
//#define PI 3.14159265359

int main() {
    // input
    ll N;
    cin >> N;
    ll A[N - 1];
    for (ll i = 0; i < N - 1; i++) {
        cin >> A[i];
    }

    // process
    ll ans[N];
    memset(ans, 0, sizeof(ans));

    for (ll i = 0; i < N - 1; ++i) {
        ans[A[i] - 1]++;
    }

    for (ll j = 0; j < N; ++j) {
        cout << ans[j] << endl;
    }

    return 0;
}