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