Consider a bijective function .
Define another function so that for and if then .
Now, the function is said to be the inverse function of and is denoted as .
In this task, you'll be given an integer and a bijective function where .
Output the inverse of .
There are lines in the input.
The first line contains a single positive integer .
The second line contains space separated integers, the values of , respectively.
Output lines. The line should contain the value of .
1 2 3
2 3 1
First sample :-
Basically, this is the function . Hence, it's the inverse of itself.
Second Sample :-
Here you can see that
One way to confirm is .