atcoder#ABC277A. [ABC277A] ^{-1}
[ABC277A] ^{-1}
Score : points
Problem Statement
You are given a sequence that is a permutation of , and an integer . The -th term of has a value of . Print such that .
Constraints
- is a permutation of .
- All values in the input are integers.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
4 3
2 3 1 4
2
We have , so . Thus, you should print .
5 2
3 5 1 4 2
5
6 6
1 2 3 4 5 6
6