Mia and Mark both own a chandelier, each of which has $$$n$$$ candleholders. After the installation, Mia wonders whether she can hide a part of the room behind a vertically placed mirror for a magic trick. Of course, the mirror should be placed such that Mark would not notice its existence. She believes that she can ensure that Mark will not be able to see her or himself in the mirror, and that she can use clever lighting to hide any possible weirdness resulting from mirroring the room's walls. What worries her most are the chandeliers. Mark knows the precise positions of all the candleholders and would immediately notice if the chandelier in the mirror looked different from the chandelier behind the mirror he expects to see. Naturally, all candleholders of one chandelier should lie on one side of the mirror, and all candleholders of the other chandelier on the other side.

Illustration of the third sample.
The input consists of:
Output "possible" if it is possible to place the mirror as desired, and "impossible" otherwise.
10 01 1
possible
20 02 21 13 3
impossible
21 32 12 44 3
possible
22 11 32 44 3
possible
31 13 12 41 33 32 0
impossible
3-1 -1-2 -2-2 10 01 -11 2
impossible
3-1 -1-2 -2-2 10 11 -11 2
impossible