A photographer takes a strange picture of performers standing along a number line.
Each performer at position creates one mark at and one shadow mark at . The positive integer is the same for everyone.
The photographer records all marks but loses the information about which are performers and which are shadows. Multiple performers may stand at the same position. Overlapping marks are recorded separately, so positions can repeat.
Reconstruct a possible list of performer positions, or determine that the photograph is impossible.
The first line contains and .
The second line contains integers giving the recorded positions in any order.
If reconstruction is impossible, print IMPOSSIBLE.
Otherwise, print performer positions in nondecreasing order, separated by spaces.
Every recorded position is an integer between and , inclusive.
In Sample 1, performers at , , and create shadows at , , and . Position has two recorded marks.
In Sample 2, position must be a performer, paired with its shadow at . The remaining marks at and cannot form a performer-shadow pair.
| Sample Input 1 | Sample Output 1 |
|---|---|
3 2 6 1 3 4 3 5 |
1 3 4 |
| Sample Input 2 | Sample Output 2 |
|---|---|
2 3 0 3 4 8 |
IMPOSSIBLE |