#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:100000000000,100000000000")
using namespace std;
const double eps = 1E-9;
const double Exp = 2.718281828459045;
const double Pi = 3.1415926535897932;
const int NMAX = 2000 + 5;
const int MMAX = 100000 + 5;
const int INF = 1000000000;
const int BS = 1000000007;
template <typename T>
inline T abs(const T a) {
  if (a < 0) return -a;
  return a;
}
template <typename T>
inline T sqr(const T& a) {
  return a * a;
}
int main() {
  ios::sync_with_stdio(false);
  int n;
  int i, j;
  int a[NMAX];
  int sorted[NMAX];
  cin >> n;
  for (i = 1; i <= n; i++) {
    cin >> a[i];
    sorted[i] = a[i];
  }
  sort(sorted + 1, sorted + n + 1);
  int x;
  for (i = 1; i <= n; i++) {
    cout << n + 2 - (upper_bound(sorted + 1, sorted + n + 1, a[i]) - sorted)
         << " ";
  }
  return 0;
}
