Competition Results
time limit per test
1 second
memory limit per test
1024 mebibytes
input
standard input
output
standard output

There are $$$n$$$ runners participating in a race. Each runner is assigned a unique number from $$$1$$$ to $$$n$$$. They have arrived at the finish line in some specific order, with no ties. Let us say that runner $$$i$$$ has performed an upset of runner $$$j$$$ if $$$i$$$ finished before $$$j$$$ and $$$i < j$$$.

For each $$$i$$$ from $$$1$$$ to $$$n$$$, it is known that runner $$$i$$$ has performed exactly $$$a_i$$$ upsets of other runners. Your task is to restore the competition results: the number of the runner that took first place, the number of the runner that took second place, ..., the number of the runner that took the $$$n$$$-th place. It can be shown that the answer is always unique, assuming that it exists.

Input

The first line of the input contains an integer $$$n$$$ from $$$1$$$ to $$$1000$$$: the number of runners.

The second line contains $$$n$$$ space-delimited integers $$$a_1, a_2, \ldots, a_n$$$, where $$$a_i$$$ is the number of upsets performed by runner $$$i$$$.

The given data is consistent with some possible results of the competition: for every $$$i$$$, it is true that $$$a_i \le n - i$$$. In particular, $$$a_n = 0$$$.

Output

Print $$$n$$$ space-separated integers: the numbers of runners who took first, second, ..., $$$n$$$-th place.

Examples

Input

    53 0 2 1 0

Output

    3 1 4 5 2

Input

    10

Output

    1

Input

    20 0

Output

    2 1

Note

Let us check that the answer to the first example is consistent with the given numbers $$$a_i$$$.

1. Runner $$$1$$$ has upset runners $$$2$$$, $$$4$$$, and $$$5$$$.
2. Runner $$$2$$$ took the last place and, therefore, has not outperformed anyone. Hence, runner $$$2$$$ has performed no upsets.
3. The runner with the number $$$3$$$ took the first place and, therefore, has upset both runners with larger numbers.
4. The runner with the number $$$4$$$ has upset a single other runner: runner $$$5$$$.
5. There are no runners with numbers larger than $$$5$$$. Therefore, runner $$$5$$$ has performed no upsets.