Problem: One very well-known internet resource site (let's call it X) has come up with a New Year adventure. Specifically, they decided to give ratings to all visitors.

There are n users on the site, for each user we know the rating value he wants to get as a New Year Present. We know that user i wants to get at least ai rating units as a present.

The X site is administered by very creative and thrifty people. On the one hand, they want to give distinct ratings and on the other hand, the total sum of the ratings in the present must be as small as possible.

Help site X cope with the challenging task of rating distribution. Find the optimal distribution.

Input

The first line contains integer n (1 ≤ n ≤ 3·105) — the number of users on the site. The next line contains integer sequence a1, a2, ..., an (1 ≤ ai ≤ 109).

Output

Print a sequence of integers b1, b2, ..., bn. Number bi means that user i gets bi of rating as a present. The printed sequence must meet the problem conditions. 

If there are multiple optimal solutions, print any of them.

Examples

Input

3
5 1 1


Output

5 1 2


Input

1
1000000000


Output

1000000000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
inline bool isLow(char ch) {
  if (ch >= 'a' && ch <= 'z') return true;
  return false;
}
inline bool isUpp(char ch) {
  if (ch >= 'A' && ch <= 'Z') return true;
  return false;
}
inline bool isDig(char ch) {
  if (ch >= '0' && ch <= '9') return true;
  return false;
}
inline bool are_equal(double a, double b) {
  return fabs(a - b) < numeric_limits<double>::epsilon();
}
inline bool greater_than(double a, double b) {
  return (a - b) > ((fabs(a) < fabs(b) ? fabs(b) : fabs(a)) *
                    numeric_limits<double>::epsilon());
}
inline bool less_than(double a, double b) {
  return (b - a) > ((fabs(a) < fabs(b) ? fabs(b) : fabs(a)) *
                    numeric_limits<double>::epsilon());
}
template <typename T>
string toString(T x) {
  stringstream ss;
  ss << x;
  return ss.str();
}
template <typename T>
T SOD(T n) {
  __typeof(n) sum = 0, i = 1;
  for (; i * i <= n; i++)
    sum += (n % i) ? 0 : ((((i) * (i)) == n) ? i : i + n / i);
  return sum;
}
template <typename T>
T stringToT(string s, T a) {
  T p;
  istringstream ss(s);
  ss >> p;
  return p;
}
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  os << "[";
  for (int i = 0; i < v.size(); i++) {
    os << v[i];
    if (i != (int)v.size() - 1) os << ", ";
  }
  os << "]";
  return os;
}
template <typename T>
ostream& operator<<(ostream& os, const set<T>& v) {
  os << "[";
  for (auto it : v) {
    os << it;
    if (it != *v.rbegin()) os << ", ";
  }
  os << "]";
  return os;
}
template <typename T, typename S>
ostream& operator<<(ostream& os, const map<T, S>& v) {
  for (auto it : v) os << it.first << " : " << it.second << '\n';
  return os;
}
template <typename T, typename S>
ostream& operator<<(ostream& os, const pair<T, S>& v) {
  os << "(" << v.first << ", " << v.second << ")";
  return os;
}
long long power(long long a, long long b) {
  long long res = 1;
  while (b) {
    if (b & 1) res *= a;
    a = ((a) * (a));
    b >>= 1;
  }
  return res;
}
long long bigmod(long long a, long long b, long long m) {
  long long res = 1;
  while (b) {
    if (b & 1) {
      res = ((res % m) * (a % m)) % m;
    }
    a = ((a % m) * (a % m)) % m;
    b >>= 1;
  }
  return res;
}
long long modInverse(long long a, long long m) { return bigmod(a, m - 2, m); }
const int mod = 1e9 + 7;
const int mx = 3 * 100001;
int n;
pair<int, int> a[mx];
bool sortbyidx(pair<int, int> x, pair<int, int> y) {
  return x.second < y.second;
}
int main() {
  scanf("%d", &n);
  for (__typeof(n - 1) i = (0); i <= (n - 1); i++)
    scanf("%d", &a[i]), a[i].second = i;
  sort(a, a + n);
  int sml = a[0].first;
  for (__typeof(n - 1) i = (1); i <= (n - 1); i++) {
    if (a[i].first == sml) {
      a[i].first++;
      sml++;
    } else if (a[i].first > sml)
      sml = a[i].first;
    else
      a[i].first = ++sml;
  }
  sort(a, a + n, sortbyidx);
  for (__typeof(n - 1) i = (0); i <= (n - 1); i++) printf("%d ", a[i].first);
  puts("");
  return 0;
}