Everyone Has a Shadow

A photographer takes a strange picture of NN performers standing along a number line.

Each performer at position xx creates one mark at xx and one shadow mark at x+Dx+D. The positive integer DD is the same for everyone.

The photographer records all 2N2N 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.

Input

The first line contains NN and DD.

The second line contains 2N2N integers giving the recorded positions in any order.

Output

If reconstruction is impossible, print IMPOSSIBLE.

Otherwise, print NN performer positions in nondecreasing order, separated by spaces.

Constraints

Notes

In Sample 1, performers at 11, 33, and 44 create shadows at 33, 55, and 66. Position 33 has two recorded marks.

In Sample 2, position 00 must be a performer, paired with its shadow at 33. The remaining marks at 44 and 88 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