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