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