#include <bits/stdc++.h>
using namespace std;
struct presents {
  int number;
  int value;
  int rating;
} User[300005];
bool comparison(struct presents a, struct presents b) {
  return a.value < b.value;
}
bool comparison2(struct presents a, struct presents b) {
  return a.number < b.number;
}
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    User[i].number = i;
    scanf("%d", &User[i].value);
  }
  sort(User, User + n, comparison);
  for (int i = 0; i < n; i++) {
    if (i == 0 || User[i].value > User[i - 1].rating) {
      User[i].rating = User[i].value;
    } else {
      User[i].rating = User[i - 1].rating + 1;
    }
  }
  sort(User, User + n, comparison2);
  int i;
  for (i = 0; i < n - 1; i++) printf("%d ", User[i].rating);
  printf("%d\n", User[i].rating);
  return 0;
}
