#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> a(n);
  for (int i = 0; i < n; ++i) scanf("%d", &a[i]);
  for (int i = 0; i < n; ++i) {
    int x = 1;
    for (int j = 0; j < n; ++j)
      if (a[j] > a[i]) ++x;
    printf("%d ", x);
  }
  return 0;
}
