SSC is a super computer designed at Sharif University. It has 2 "master" processors and $n$ "slave" processors, and it can run software in parallel: one master loads the software onto the slave processors so that memory and CPU usage are balanced among them, while the other master monitors the system.
Because different parts of the software depend on each other, many messages must be exchanged between processors. A very fast network is needed to minimize the message-passing overhead. To optimize the network, a clique structure is built in which there is a direct communication cable between every pair of processors.
There are two kinds of cable: blue cables, which transmit up to 100 Megabits per second, and red cables, which transmit up to 1 Gigabit per second. Every pair of slave processors is connected by one blue cable. Because the master processors carry more traffic, the two masters are connected by one red cable, and each master is also connected to each slave by one red cable. Hence there are exactly $2n+1$ red cables: one between the two masters and $2n$ between masters and slaves.
SSC is therefore made of $n+2$ motherboards, each containing exactly one processor, the needed memory, and $n+1$ identical network sockets arranged horizontally. The motherboards are placed one per horizontal shelf in a vertical rack box, so each motherboard is uniquely identified by its height in the rack.
For cooling reasons, the two master motherboards must occupy the lowest and highest shelves of the rack. Let the bottom master have height $0$; every other motherboard has a distinct positive integer height. As the engineer, you receive the empty rack and the ready motherboards and must assemble SSC. You want the cabling to be tidy and tight, so you place the motherboards so that the length of the cable between any two boards equals the difference of their heights.
In short, you must assign heights as follows.
The assignment must satisfy both of the following.
The input contains several test cases.
The first line of each test case contains two integers $n$ and $m$ ($1 \le n \le 100$, $1 \le m \le 1000$). The second line contains the $2n+1$ lengths of the red (Gigabit) cables. The third line contains the $m$ available lengths of the blue (Megabit) cables.
The last line of the input contains two zeros, marking the end of the input.
For each test case, print $n+1$ integers on one line. The first number is the height $H$ of the top master processor, and the remaining $n$ numbers are the heights of the slaves in increasing order.
If several valid arrangements exist, print the one whose output sequence (the top master's height followed by the slave heights in increasing order) is lexicographically smallest when the numbers are compared as integers.
If no valid arrangement exists, print Impossible.