#include <bits/stdc++.h>
using namespace std;
struct node {
  long long int val;
  int pos;
};
bool comp(struct node a, struct node b) { return a.val < b.val; }
long long int rating[300005];
int main() {
  int n, i;
  vector<struct node> v;
  struct node s;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> rating[i];
    s.val = rating[i];
    s.pos = i;
    v.push_back(s);
  }
  sort(v.begin(), v.end(), comp);
  long long int mi = 0;
  for (i = 0; i < v.size(); i++) {
    if (v[i].val <= mi) {
      v[i].val = mi + 1;
    }
    rating[v[i].pos] = v[i].val;
    mi = v[i].val;
  }
  for (i = 0; i < n; i++) {
    cout << rating[i] << " ";
  }
  cout << "\n";
  return 0;
}
