Given a permutation describing who gave a present to whom, reconstruct the final arrangement so that each child gets the present intended for them.
There are children numbered from $1npnp_iip_i$.
Your task is to determine, for every child , which child gave a present to them.
In other words, output the inverse permutation.
For each child from $1njp_j = i$.
Example 1
Input
4 2 3 4 1
Output
4 1 2 3
Explanation
Child 1 received a present from child 4, child 2 from child 1, child 3 from child 2, and child 4 from child 3.
Premium problem context
Premium adds guided hints, editorial links, similar variants, discussion resources, and concept maps so you can understand why a problem matters, not just solve it once.