A Sudoku grid is a 16\times16 grid of cells grouped in sixteen 4\times4 squares, where some cells are filled with letters from to (the first capital letters of the English alphabet), as shown in figure 1a. The game is to fill all the empty grid cells with letters from to such that each letter from the grid occurs once only in the line, the column, and the 4\times4 square it occupies. The initial content of the grid satisfies the constraints mentioned above and guarantees a unique solution.

Each data set encodes a grid and contains strings on consecutive lines as shown in sample input/output. The -th string stands for the -th line of the grid, is characters long, and starts from the first position of the line. String characters are from the set \{A, B, \ldots, P, -\}, where "" (minus) designates empty grid cells. The data sets are separated by single empty lines and terminate with an end of file.
The program prints the solution of the input encoded grids in the same format and order as used for input.
Example 1