There is an $N\times N$ grid where each cell contains an integer between $0$ and $5$, inclusive. Let $(i,j)$ denote the cell at the $i$\-th row from the top and the $j$\-th column from the left $(1\leq i,j\leq N)$. The integer written in cell $(i,j)$ is $A _ {i,j}$.
You can perform the following operation any number of times, possibly zero:
* Choose a cell $(i,j)$ with $0$ written in it and an integer $x$ between $1$ and $5$, inclusive. Change the number written in the chosen cell to $x$.
After the operations, let $B _ {i,j}$ be the integer written in cell $(i,j)$. The **cost** of the grid is defined as the sum of the squares of the differences between the integers written in adjacent cells. In other words, the cost is represented by the following formula:
<center>$\displaystyle\sum _ {i=1} ^ N\sum _ {j=1} ^ {N-1}(B _ {i,j}-B _ {i,j+1})^2+\sum _ {i=1} ^ {N-1}\sum _ {j=1} ^ N(B _ {i,j}-B _ {i+1,j})^2$</center>
Among all possible states of the grid after the operations, find the one with the minimum cost.
If multiple grid states have the minimum cost, you may print any of them.
## Constraints
* $1\leq N\leq20$
* $0\leq A _ {i,j}\leq 5\ (1\leq i\leq N,1\leq j\leq N)$
* All input values are integers.
## Input
The input is given from Standard Input in the following format:
$N$
$A _ {1,1}$ $A _ {1,2}$ $\ldots$ $A _ {1,N}$
$A _ {2,1}$ $A _ {2,2}$ $\ldots$ $A _ {2,N}$
$\vdots$ $\ \vdots$ $\ddots$ $\vdots$
$A _ {N,1}$ $A _ {N,2}$ $\ldots$ $A _ {N,N}$
[samples]