#include <bits/stdc++.h>
using namespace std;
struct name {
  long long x;
  long long y;
};
bool f(name x, name y) { return x.x < y.x; }
int main() {
  ios::sync_with_stdio(0);
  long long n;
  cin >> n;
  vector<name> a(n + 1);
  vector<long long> ans(n + 1, 0);
  for (int i = 1; i <= n; i++) {
    cin >> a[i].x;
    a[i].y = i;
  }
  sort(a.begin(), a.end(), f);
  for (int i = 2; i <= n; i++)
    if (a[i].x <= a[i - 1].x) a[i].x = a[i - 1].x + 1;
  for (int i = 1; i <= n; i++) ans[a[i].y] = a[i].x;
  for (int i = 1; i <= n; i++) cout << ans[i] << ' ';
}
