#include <bits/stdc++.h>
using namespace std;
const int oo = 999999999;
const double PI = 3.1415931;
const double eps = 1e-9;
const int maxN = 1000 * 300 + 10;
pair<int, int> a[maxN];
int ans[maxN];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i].first;
    a[i].second = i;
  }
  int last = 0;
  sort(a + 1, a + 1 + n);
  for (int i = 1; i <= n; i++) {
    ans[a[i].second] = max(last + 1, a[i].first);
    last = ans[a[i].second];
  }
  for (int i = 1; i <= n; i++) cout << ans[i] << " ";
  cout << endl;
  ;
  return 0;
}
