#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[2005], b[2005];
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i <= n; i++) {
    b[i] = 1;
    for (int j = 1; j <= n; j++) {
      if (a[j] > a[i]) b[i]++;
    }
  }
  for (int i = 1; i <= n; i++) {
    cout << b[i] << ' ';
  }
}
