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