#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c, ar[2000], co, con;
  cin >> n;
  for (c = 0; c < n; c++) {
    cin >> ar[c];
  }
  for (c = 0; c < n; c++) {
    for (con = 0, co = 0; con < n; con++) {
      if (ar[c] < ar[con]) co++;
    }
    cout << co + 1 << " ";
  }
  return 0;
}
