#include <bits/stdc++.h>
struct person {
  int x;
  int y;
} a[300000];
int r[300000];
inline bool operator<(const person &a, const person &b) {
  if (a.y != b.y) return a.y < b.y;
  return a.x < b.x;
}
int main() {
  int i, n, m = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    a[i].x = i;
    scanf("%d", &a[i].y);
  }
  std::sort(a, a + n);
  for (i = 0; i < n; i++) {
    if (m < a[i].y)
      r[a[i].x] = a[i].y;
    else
      r[a[i].x] = m;
    m = r[a[i].x] + 1;
  }
  for (i = 0; i < n; i++) printf("%d ", r[i]);
}
