#include <bits/stdc++.h>
using namespace std;
struct xx {
  int x, y, r;
};
vector<xx> a;
int n, r;
bool cmp(xx x, xx y) { return x.x < y.x; }
bool cmp2(xx x, xx y) { return x.y < y.y; }
int main() {
  cin >> n;
  a.resize(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i].x;
    a[i].y = i;
  }
  sort(a.begin(), a.end(), cmp);
  r = 0;
  for (int i = 0; i < n; i++) {
    if (a[i].x > r)
      r = a[i].x;
    else
      r++;
    a[i].r = r;
  }
  sort(a.begin(), a.end(), cmp2);
  for (int i = 0; i < n; i++) {
    cout << a[i].r << " ";
  }
  return 0;
}
