#include <bits/stdc++.h>
using namespace std;
struct user {
  long long want, id;
};
bool cmp(const user& a, const user& b) { return a.want < b.want; }
int main() {
  set<long long> used;
  long long n;
  cin >> n;
  vector<user> ar(n);
  vector<long long> ans(n);
  for (long long i = 0; i < n; i++) {
    cin >> ar[i].want;
    ar[i].id = i;
  }
  sort(ar.begin(), ar.end(), cmp);
  long long last = 0;
  for (int i = 0; i < n; i++) {
    if (ar[i].want > last) {
      ans[ar[i].id] = ar[i].want;
      last = ar[i].want;
    } else {
      last++;
      ans[ar[i].id] = last;
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i] << ' ';
  return 0;
}
