The first line contains two integersand
![]()
-- the size of the matrices.
The nextlines describe the matrix
. Each of the following
lines contains
characters
or
.
It is guaranteed that the boundaries of the matrixare
, i.e., the
-st row, the
-st column, the
-th row and the
-th column of the matrix
are
.
lines and each line has
characters
or
.
The firstlines describe the matrix
.
The nextlines describe the matrix
.
If there are multiple answers, print any of them.