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