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