You are given a positive integer N. Your task is to determine if there exists a square matrix A whose dimension is N that satisfies the following conditions and provide an example of such matrices if it exists. A_{i, j} denotes the element of matrix A at the i-th row and j-th column.
If there are more than one possible matrices, output any of them.
N
Input consists of one line, which contains the integer N that is the size of a square matrix to construct.
Output No
in a single line if such a square matrix does not exist.
If such a square matrix A exists, output Yes
on the first line and A after that. More specifically, follow the following format.
Yes A_{1, 1} A_{1, 2} ... A_{1, N} A_{2, 1} A_{2, 2} ... A_{2, N} : A_{N, 1} A_{N, 2} ... A_{N, N}
4
Yes 2 6 3 7 4 5 2 1 1 7 5 6 5 3 4 2
3
No