#include <bits/stdc++.h>
using namespace std;
int n;
int ratings[2010];
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> ratings[i];
  }
  for (int i = 0; i < n; ++i) {
    int temp = 1;
    for (int j = 0; j < n; ++j) {
      if (j == i) continue;
      if (ratings[j] > ratings[i]) {
        temp++;
      }
    }
    cout << temp;
    if (i < n - 1) {
      cout << " ";
    }
  }
  cout << endl;
  return 0;
}
