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