If it is impossible to color the cube because some of the visions contradict each other, output “Impossible”.
If there is a single way to color the cube (the ways that can be turned one into another by rotating the cube are considered equal), output the colors of the faces in a single line, from the first face to the sixth one, as shown on the picture below. Any rotation of the cube is acceptable.
If there are multiple ways to color the cube, output any two of them in the format described above, each in its own line.