You are given an integer sequence A1,A2,…,AN of length N.
Among the integer sequences B that satisfy B1<B2<⋯<BN, find one that minimizes ∣B1−A1∣+∣B2−A2∣+⋯+∣BN−AN∣. Every element of B fits in a signed 32-bit integer.
Several sequences B can reach the minimum sum. Print the lexicographically smallest one, so make B1 as small as possible, then fix that value and make B2 as small as possible, and continue in the same way.
Input
The first line contains N. (1≤N≤106)
The second line contains A1,A2,…,AN separated by spaces. (0≤Ai≤2×109)
Output
Print the lexicographically smallest optimal sequence B on N lines, one element per line.
Hint
For A={9,4,8,20,14,15,18} the minimum sum is 13. More than one B reaches it, and B={6,7,8,13,14,15,18} also has sum 13. The lexicographically smallest one is B={3,4,8,13,14,15,18}.