#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, t;
  n = t = 1;
  int str[2000];
  cin >> n;
  for (int x = 0; x < n; ++x) {
    cin >> str[x];
  }
  for (int y = 0; y < n; ++y) {
    for (int f = 0; f < n; ++f) {
      if (str[y] < str[f]) {
        t++;
      }
    }
    cout << t << ' ';
    t = 1;
  }
  return 0;
}
