Given a set S = { a1, a2, a3, … , an }, you have to find a subset of S, P = { ax1, ax2, ax3, … , axm } such that ( x1 < x2 < … < xm ) and ( ax1< ax2< … < axm ). If there are several subsets possible then you should find the subset where x1 is minimum. If there is still a tie then check for the lowest x2 and so on.
Input
The input file contains several sets of inputs. The total number of test cases will be less than 25. The description of each set is given below:
Each case starts with two integers n (1 ≤ n ≤ 10000) and q (1 ≤ q ≤ 100), q is the number of queries. The next line contains n integers (seperated by a space) denoting a1, a2, a3, … , an respectively. And the next q lines, each contains an integer denoting m (1 ≤ m ≤ n). There is no number in the input file that contains more than 8 digits.
The input will be terminated by the case where n = q = 0. And this case should not be processed.
Output
For each case in the input, you should first print the case number starting from 1. Then for each query first print the query number starting from 1. And for each m you have to find the result. If there exists a subset as described above you should print the elements of the subset in a single line. The numbers should be seperated by a space. Otherwise print ``Impossible’’ without the quotes.
See the sample input-output for more details. Output should be formatted like the sample output.