#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, t = 0;
  cin >> n;
  long long int a[n], b[n];
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
    b[i] = a[i];
  }
  sort(a, a + n);
  for (int i = 0; i < n; ++i) {
    t = 0;
    for (int j = 0; j < n; ++j) {
      if (a[j] > b[i]) {
        cout << n - j + 1 << " ";
        t = 1;
        break;
      }
    }
    if (t == 0) {
      cout << "1"
           << " ";
    }
  }
}
