#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
using boost::multiprecision::cpp_int;

typedef long long ll;
typedef pair<ll, ll> pll;

const ll INF = 1e17;
const ll MOD = 1e9+7;

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

    // resolve
    map<int, int> mp;
    for (int i=1; i<=N; i++) mp[i] = 0;
    for (auto a: A) mp[a]++;

    // output
    for (auto m: mp) {
      cout << m.second << endl;
    }


    return 0;
}
