#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<pair<long long, long long> > v, w;
  for (long long i = 0; i < n; ++i) {
    long long a;
    cin >> a;
    v.push_back(make_pair(a, i));
  }
  sort(v.begin(), v.end());
  long long p = 0;
  for (long long i = 0; i < n; ++i) {
    p = max(p, v[i].first);
    w.push_back(make_pair(v[i].second, p));
    p++;
  }
  sort(w.begin(), w.end());
  cout << w[0].second;
  for (long long i = 1; i < n; ++i) {
    cout << " " << w[i].second;
  }
  cout << "\n";
  return 0;
}
