#include <bits/stdc++.h>
using namespace std;
int ind[300010];
int arr[300010];
int ret[300010];
bool cmp(int a, int b) { return arr[a] < arr[b]; }
int main() {
  int N;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> arr[i];
    ind[i] = i;
  }
  sort(ind, ind + N, cmp);
  ret[ind[0]] = arr[ind[0]];
  for (int i = 1; i < N; i++) {
    int cur = ind[i];
    int prev = ind[i - 1];
    ret[cur] = max(ret[prev] + 1, arr[cur]);
  }
  for (int i = 0; i < N; i++) cout << ret[i] << " ";
}
