#include <bits/stdc++.h>
struct cc {
  long long int first;
  int second;
};
bool io(cc x, cc y) { return x.first < y.first; }
bool oi(cc x, cc y) { return x.second < y.second; }
using namespace std;
int main() {
  int n;
  cin >> n;
  cc a[n];
  for (int i = 0; i <= n - 1; i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  sort(a, a + n, io);
  for (int i = 1; i <= n - 1; i++)
    if (a[i].first <= a[i - 1].first) {
      a[i].first = a[i - 1].first + 1;
    }
  sort(a, a + n, oi);
  for (int i = 0; i <= n - 1; i++) cout << a[i].first << ' ';
}
