The Police President has recently bought a new game -- the famous Ravensburger's aMAZEing Labyrinth. Now, he is really keen on it, he spends any free time playing this game. While we want the Police President during the Summit to perform much more important decisions, we need a program that would substitute him in playing the game.
The game is played on the field of 7 * 7 squares with equal-sized cards lying on each square. Various path patterns are drawn on the cards, these paths join arbitrary subset of the four edges of a single square. The patterns can form longer paths leading through the whole game field. When following these paths, it is possible to move from a square to its neighbouring square, if both squares contain the path pattern leading to their common edge. It is impossible to travel between squares diagonally. See the picture for a better idea about the game appearance.
The input consists of several game descriptions. The first line of each description contains four integer numbers R1, C1, R2, and C2separated with a space, 1 <= R1, C1, R2, C2 <= 7. (R1,C1) is the position (row and column) of the game piece, (R2,C2) is the position of the target. Note that these positions can sometimes be shifted during the move, as specified above. After these numbers, there is one blank line.
The next three lines describe the first row of the game field. Each of these lines contains 27 characters: three for the card in the first column, one space, three characters for the card in the second column, etc. Thus, every card is represented by a square of nine (3 * 3) characters. The middle one of these nine characters is always capital letter "O". The four characters in the corners are always dots ("."). The both left and right characters are either a dot (".") or a dash ("-"). Dashes mean the path pattern leading to the left or right edge. The top and bottom characters are either a dot or a pipe ("|"). The pipe means the path pattern leading to the corresponding edge.
After the first row, there is one blank line and three other lines describing the second row. Then follow one other blank line and three lines for the third row, etc. After the seventh row, there is a blank line and three other lines containing exactly three characters each. This is the description of the extra card, given in the same way as the cards in the field.
The input is terminated by a line containing four zeros instead of piece and target coordinates.
For each game, output a single line. If it is possible to insert the extra card in such a way that there is a path from the game piece to the target, print the sentence "You can win in one move.". Otherwise, print the sentence "Bad luck!".
1 1 7 7 ... ... ... .|. ... ... ... -O- -O- -O- .O. -O- -O- -O. ... ... ... .|. ... ... .|. ... ... ... ... ... ... .|. .O- -O- -O- -O- -O- -O- -O. .|. ... ... ... ... ... ... .|. ... ... ... ... ... ... .O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... .|. ... ... ... ... ... ... .|. .O- -O- -O- -O- -O- -O- -O. .|. ... ... ... ... ... ... .|. ... ... ... ... ... ... .O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... .|. ... ... ... ... ... ... .|. .O- -O- -O- -O- -O- -O- -O. .|. ... ... ... ... ... ... .|. ... ... ... ... ... ... .O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... ... .|. .O. .|. 1 1 7 7 ... ... ... ... ... ... ... -O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... .|. ... ... ... ... ... ... .|. .O- -O- -O- -O- -O- -O- -O. .|. ... ... ... ... ... ... .|. ... ... ... ... ... ... .O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... .|. ... ... ... ... ... ... .|. .O- -O- -O- -O- -O- -O- -O. .|. ... ... ... ... ... ... .|. ... ... ... ... ... ... .O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... .|. ... ... ... ... ... ... .|. .O- -O- -O- -O- -O- -O- -O. .|. ... ... ... ... ... ... .|. ... ... ... ... ... ... .O- -O- -O- -O- -O- -O- -O. ... ... ... ... ... ... ... ... .O- .|. 0 0 0 0
You can win in one move. Bad luck!