#include <bits/stdc++.h>
using namespace std;
int arr1[300020];
pair<int, int> arr2[300020];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr1[i];
    arr2[i].first = arr1[i];
    arr2[i].second = i;
  }
  sort(arr2, arr2 + n);
  for (int i = 1; i < n; i++) {
    if (arr2[i].first <= arr2[i - 1].first) {
      arr2[i].first = 1 + arr2[i - 1].first;
      arr1[arr2[i].second] = arr2[i].first;
    }
  }
  for (int i = 0; i < n; i++) cout << arr1[i] << " ";
  return 0;
}
