#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
#define MAX 200000

int main() {
    int n, k;
    int a[MAX];
    int b[MAX];
    cin >> n;
    for (int i=0;i<n-1;i++) {
      cin >> a[i];
    }
    for (int i=0;i<n-1;i++) {
        b[a[i]-1]++;
    }
    for (int i=0;i<n;i++) {
        cout << b[i] << endl;
    }
    return 0;
}