The Marvelous Maximillian is a stage magician famous for his grand finale, The Perfect Permutation. He claims he can arrange $$$N$$$ cards, numbered $$$1$$$ to $$$N$$$, into any permutation $$$P$$$ requested by the audience.
As his apprentice, you know his secret: it's a precise $$$N$$$-step procedure. The trick starts with an empty pile. For each card $$$i$$$ from $$$1$$$ to $$$N$$$, in order:
Tonight, an audience member has demanded the final pile be in the specific order $$$P$$$, where $$$P_1$$$ is the top card and $$$P_N$$$ is the bottom.
Maximillian is on stage and looking at you. You must provide the correct sequence of cut numbers, $$$x_1, x_2, \ldots, x_N$$$, to produce the permutation $$$P$$$ and save the show.
The first line contains a single integer $$$N$$$ ($$$1 \le N \le 2 \cdot 1o^5$$$) — the number of cards.
The second line contains $$$N$$$ integers $$$P_1, P_2, \ldots, P_N$$$($$$1 \le P_i \le N$$$) — the permutation demanded by the audience.
Print one line containing $$$N$$$ integers — the sequence of cut numbers, $$$x_1, x_2, \ldots, x_N$$$.
51 2 3 4 5
1 1 1 1 1
44 1 3 2
1 2 2 4
For the first example, every cut is just taking the top card and putting it in the bottom.
For the second example, the pile after each cut is as follows.
| Name |
|---|


