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