#include <bits/stdc++.h>
using namespace std;
int arr[2005];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> arr[i];
  for (int i = 0; i < n; i++) {
    int count = 1;
    for (int j = 0; j < n; j++) {
      if (arr[i] < arr[j]) count++;
    }
    cout << count << ' ';
  }
  return 0;
}
