#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  vector<pair<int, int> > v;
  int n, a;
  cin >> n;
  vector<int> ans(n, 0);
  for (int i = 0; i < n; i++) {
    cin >> a;
    v.push_back(make_pair(a, i));
  }
  sort(v.begin(), v.end());
  for (int i = 0; i < n; i++) {
    if (i > 0 && v[i].first <= v[i - 1].first) {
      v[i].first = v[i - 1].first + 1;
    }
    ans[v[i].second] = v[i].first;
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
