#include <bits/stdc++.h>
using namespace std;
pair<int, int> arr[300005];
bool comp(pair<int, int> a, pair<int, int> b) { return a.second < b.second; }
int main() {
  int n;
  cin >> n;
  int i, x;
  for (i = 0; i < n; i++) {
    cin >> x;
    arr[i].first = x;
    arr[i].second = i;
  }
  sort(arr, arr + n);
  for (i = 1; i < n; i++) {
    if (arr[i].first <= arr[i - 1].first) {
      arr[i].first = arr[i - 1].first + 1;
    }
  }
  sort(arr, arr + n, comp);
  for (i = 0; i < n; i++) {
    cout << arr[i].first << " ";
  }
  cout << endl;
  return 0;
}
