For each test case, you need to output
nnn lines, each containing
mmm characters, representing the final state of the board. The
jjj-th character of the
iii-th line
ci,jc_{i,j}ci,j represents the piece at row
iii, column
jjj of the board. If
ci,jc_{i,j}ci,j is `x', it means the cell at row
iii, column
jjj contains a black piece. If
ci,jc_{i,j}ci,j is `o', it means the cell at row
iii, column
jjj contains a white piece. If
ci,jc_{i,j}ci,j is any other character, you will receive a `Wrong Answer' result.
If there is a line of five consecutive pieces on the board or the state you output cannot be the final state of a Gomoku game according to the aforementioned rules, you will receive a `Wrong Answer' result.
It can be shown that at least one solution exists. If there are multiple solutions, you can output any of them.