#include <bits/stdc++.h>
using namespace std;
int a[303030], o[303030], m;
pair<int, int> p[303030];
int main() {
  ios::sync_with_stdio(0);
  cin.tie();
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) p[i] = {a[i], i};
  sort(p, p + n);
  for (int i = 0; i < n; i++) {
    auto [a, b] = p[i];
    o[b] = max(a, m + 1);
    m = o[b];
  }
  for (int i = 0; i < n; i++) cout << o[i] << ' ';
}
