#include <bits/stdc++.h>
using namespace std;
bool sortbysec(const pair<int, int> &a, const pair<int, int> &b) {
  return (a.second < b.second);
}
void run() {
  int n;
  cin >> n;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<pair<int, int> > v;
  pair<int, int> p;
  for (int i = 0; i < n; i++) {
    v.push_back(make_pair(a[i], i));
  }
  sort(v.begin(), v.end());
  for (int i = 1; i < n; i++) {
    if (v[i].first != 0) {
      if (v[i].first <= v[i - 1].first) v[i].first = v[i - 1].first + 1;
    }
  }
  sort(v.begin(), v.end(), sortbysec);
  for (int i = 0; i < n; i++) {
    cout << v[i].first << " ";
  }
}
int main(int argc, char **argv) {
  run();
  return 0;
}
