#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int x;
  map<int, int> m;
  vector<int> v;
  int c = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    v.push_back(x);
  }
  for (int i = 0; i < v.size(); i++) {
    for (int j = 0; j < v.size(); j++) {
      if (v[j] > v[i]) {
        c++;
      }
    }
    cout << 1 + c << " ";
    c = 0;
  }
}
