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