#include <bits/stdc++.h>
using namespace std;
using PII = pair<int, int>;
using LL = long long;
const int INF = 1000000007;
PII a[300005];
int c[300005];
int main() {
  int n, x = 0;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i].first);
    a[i].second = i;
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    x = max(x + 1, a[i].first);
    c[a[i].second] = x;
  }
  for (int i = 0; i < n - 1; i++) printf("%d ", c[i]);
  printf("%d\n", c[n - 1]);
}
