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