#include <bits/stdc++.h>
using namespace std;
const int rx[] = {0, -1, 0, 1, -1, 1, 1, -1};
const int cy[] = {1, 0, -1, 0, 1, 1, -1, -1};
int main() {
  int n, x;
  cin >> n;
  vector<pair<int, int> > ar;
  vector<int> ans(n, -1);
  for (int i = 0; i < n; i++) {
    cin >> x;
    ar.push_back(make_pair(x, i));
  }
  sort(ar.begin(), ar.end());
  x = 0;
  for (int i = 0; i < n; i++) {
    x = max(ar[i].first, x);
    ans[ar[i].second] = x;
    x++;
  }
  for (int i = 0; i < n; i++) {
    if (i) cout << " ";
    cout << ans[i];
  }
  cout << endl;
  return 0;
}
