#include <bits/stdc++.h>
using namespace std;
int n;
pair<int, int> a[300200];
int c[300200];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i].first, a[i].second = i;
  sort(a, a + n);
  int cur = a[0].first;
  for (int i = 0; i < n; i++) {
    if (a[i].first <= cur)
      c[a[i].second] = cur, cur++;
    else if (a[i].first > cur)
      cur = a[i].first + 1, c[a[i].second] = a[i].first;
  }
  for (int i = 0; i < n; i++) cout << c[i] << ' ';
  return 0;
}
