#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  pair<int, int> *P = new pair<int, int>[N];
  int *A = new int[N];
  for (int i = 0; i < N; i++) {
    scanf("%d", &P[i].first);
    P[i].second = i;
  }
  sort(P, P + N);
  int p = 0;
  for (int i = 0; i < N; i++) {
    if (P[i].first < ++p) P[i].first = p;
    A[P[i].second] = p = P[i].first;
  }
  for (int i = 0; i < N; i++) {
    if (i != 0) putchar(' ');
    printf("%d", A[i]);
  }
  puts("");
  return 0;
}
