#include <bits/stdc++.h>
using namespace std;
bool com(long long a, long long b) { return a < b; }
int main() {
  long long n;
  cin >> n;
  long long a[n], s;
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n; i++) {
    s = 1;
    for (long long j = 0; j < n; j++) {
      if (a[j] > a[i]) s++;
    }
    cout << s << " ";
  }
  cout << "\n";
}
