#include <bits/stdc++.h>
using namespace std;
int maxnum(int a, int b) {
  if (a > b)
    return a;
  else
    return b;
}
int main() {
  int N;
  scanf("%d", &N);
  static pair<int, int> a[300005];
  int i;
  for (i = 0; i < N; i++) {
    scanf("%d", &(a[i].first));
    a[i].second = i;
  }
  sort(a, a + N);
  for (i = 1; i < N; i++) {
    a[i].first = maxnum(a[i - 1].first + 1, a[i].first);
  }
  for (i = 0; i < N; i++) {
    int temp = a[i].first;
    a[i].first = a[i].second;
    a[i].second = temp;
  }
  sort(a, a + N);
  for (i = 0; i < N; i++) {
    if (i) printf(" ");
    printf("%d", a[i].second);
  }
  printf("\n");
  return 0;
}
