#include <bits/stdc++.h>
using namespace std;
int main() {
  long int N, M;
  cin >> N;
  long int A[N], i, j, tot = 0;
  vector<long int> P;
  A[0] = 1;
  for (i = 1; i < N; ++i) {
    cin >> A[i];
  }
  P.push_back(count(A + 1, A + N, 1));
  long int t;
  for (i = 1; i < N; ++i) {
    t = count(A, A + N, (A[i] + 1));
    P.push_back(t);
  }
  for (i = 0; i < N; ++i) {
    cout << P[i] << endl;
  }
}
