#include <bits/stdc++.h>
using namespace std;
int N;
vector<int> rating;
void reading() {
  cin >> N;
  rating.resize(N);
  for (int i = 0; i < N; i++) cin >> rating[i];
}
void processing() {
  for (int i = 0; i < N; i++) {
    int res = 0;
    for (int j = 0; j < N; j++)
      if (rating[i] < rating[j]) res++;
    cout << res + 1 << ' ';
  }
}
int main() {
  reading();
  processing();
  return 0;
}
