#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> A(N - 1);
  for (int i = 0; i < N - 1; i++) {
    cin >> A.at(i);
  }
  sort(A.begin(), A.end());
  int num = 1;
  int sum = 0;
  for (int i = 0; i < N; i++) {
    if (A.at(i) == num)
      sum++;
    else {
      cout << sum << endl;
      sum = 0;
      num++;
    }
  }
  return 0;
}
