Supercomputer Deep Thought had answered the question to life, the universe, and everything a long time back and now has nothing to do. Suddenly another question has come to him recently. One famous artist has always been looking for an approach to create an "ideal" masterpiece and has spent 42 years to find the solution. He simply has decided to ask Deep Thought about it.
This question was too simple for supercomputer and he has produced the solution right after 42 seconds since the artist came. The algorithm is designed as follows:
Deep Thought refused to provide a masterpiece generation program for a given dimension n. Therefore, you have to do it by yourself.
A single line contains only one positive integer number n – number of rows and columns in the cut painting.
In the first line output number n. In the following n lines containing n integers each should be printed matrix. The printed matrix should agree with given above constraints to form a masterpiece. If multiple solution exist, you may output any of them. If solution does not exist, you should output -1.
5
5
12 14 11 13 15
22 24 21 23 25
7 9 6 8 10
17 19 16 18 20
2 4 1 3 5
3
-1
| Name |
|---|


