#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n; i++) {
    long long ans = 1;
    for (long long j = 0; j < n; j++) {
      if (a[j] > a[i]) ans++;
    }
    cout << ans << " ";
  }
}
int main() { solve(); }
