#include <bits/stdc++.h>
using namespace std;
const int N = 3 * 10e5 + 10;
int ans[N];
vector<pair<int, int> > v;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    v.push_back(make_pair(x, i));
  }
  sort(v.begin(), v.end());
  ans[v[0].second] = v[0].first;
  for (int i = 1; i < n; i++) {
    if (v[i].first == v[i - 1].first) {
      ans[v[i].second] = ans[v[i - 1].second] + 1;
    } else {
      if (v[i].first <= ans[v[i - 1].second])
        ans[v[i].second] = ans[v[i - 1].second] + 1;
      else
        ans[v[i].second] = v[i].first;
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
