In the Go game, there is a 9×9 board, and the stones are of two colors: black and white. Determine the territory of the black stones and the territory of the white stones. The position of the chess also has its own territory. If there is a territory surrounded by both black stones and white stones, the territory does not belong to either side. For example, in the game shown in the figure below, “a” does not belong to any side; “c” belongs to the black side; “b” belongs to the white side, because it is only surrounded by the black stones and the boundary of the board; “d” belongs to the white side; and “e” belongs to the black side.

The first line of the input has an integer, specifying the number of test cases. In each test case, the first line is a blank line. Next, there will be 9 lines, and each line has 9 characters, representing the status on a Go board. The character “O” means the white chess; the character “X” means the black chess; and the character “.” means the territory no one occupied yet.
For each test case, output “Black