Ivan works at a factory that produces heavy machinery. He has a simple job: he knocks together wooden boxes of different sizes to pack machinery for delivery to customers. Each box is a rectangular parallelepiped. Ivan uses six rectangular wooden pallets to make a box, one pallet for each side.

Joe delivers pallets to Ivan. Joe is not very smart and often makes mistakes, bringing pallets that do not fit together into a box. But Joe does not trust Ivan, and it always takes a long time to convince Joe that he has made a mistake.
Fortunately, Joe adores everything related to computers and sincerely believes that computers never make mistakes. Ivan has decided to use this to his advantage. He asks you to write a program that, given the sizes of six rectangular pallets, decides whether it is possible to make a box out of them.
A pallet may be placed in either orientation, so its width and height can be swapped.
The input consists of six lines. Each line describes one pallet and contains two integers w and h (1≤w,h≤10000): the width and the height of the pallet in millimeters.
Print a single word POSSIBLE if it is possible to build a box using the six given pallets as its sides, or IMPOSSIBLE if it is not.