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