#include <bits/stdc++.h>
using namespace std;
int main() {
  long long N, temp;
  vector<int> A(100000 * 3, 0);
  cin >> N;
  for (long long i = 0; i < N - 1; i++) {
    cin >> temp;
    A[temp - 1]++;
  }
  for (long long i = 0; i < N; i++) {
    cout << A[i];
  }
}
