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