#P311. 练52.3 插队

练52.3 插队

Description

There are nn people, each with their own ID, standing in a queue. Now, a person with ID bb wants to insert themselves after the aa-th person (not the person with ID aa). Find the order of the queue after the insertion.

Input Format

The first line contains nn, the second line contains nn numbers representing the original queue order (n200n\le 200).
The third line contains two numbers aa and bb.

Output Format

Output one line containing the order of the queue after the insertion.

Sample

5
1 2 3 4 5
2 7
1 2 7 3 4 5