#abc277a. [abc277_a]^{-1}
[abc277_a]^{-1}
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.
Sample Input 1
4 3
2 3 1 4
Sample Output 1
2
We have , so . Thus, you should print .
Sample Input 2
5 2
3 5 1 4 2
Sample Output 2
5
Sample Input 3
6 6
1 2 3 4 5 6
Sample Output 3
6