#include <bits/stdc++.h>
using namespace std;
void read(int &x) {
  char ch = getchar();
  while (ch < '0' || ch > '9') ch = getchar();
  for (x = 0; ch >= '0' && ch <= '9'; ch = getchar()) x = x * 10 + ch - 48;
}
int n, a[400000], b[400000], ans[400000];
inline bool cpr(int x, int y) { return a[x] < a[y]; }
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= (n); ++i) scanf("%d", &a[i]), b[i] = i;
  sort(b + 1, b + n + 1, cpr);
  int t(0);
  for (int i = 1; i <= (n); ++i) {
    t = max(t + 1, a[b[i]]);
    ans[b[i]] = t;
  }
  for (int i = 1; i <= (n - 1); ++i) printf("%d ", ans[i]);
  printf("%d\n", ans[n]);
  return 0;
}
