# Spiral 123

We shall name a square matrix as spiral123 if it has the following properties:

- its elements are from the {0, 1, 2, 3} set;
- each row and column contains each of the values 1, 2 and 3, exactly once and all the other values are 0;
- starting from the upper-left corner going right, moving in spiral, the non-zero values will appear in the following order 1, 2, 3, 1, 2, 3, ... , 1, 2, 3.

For example a 5x5 spiral123 matrix is the following: For a given natural number n, you should generate a nxn spiral123 matrix.

### Input

The input contains only one natural number n (5 <= n <= 200) on the first line.

### Output

If there is solution, the output must contain n lines, each with n numbers separated with one space, representing the required matrix. There can be many solutions, any of them can be written.

If there is no solution, on the single line of the output, the -1 value will be written.

### Constraints

Time limit: 1 second
Memory limit: 64 megabytes

### Examples

 ```input 5``` ```output 0 1 0 2 3 0 2 3 0 1 1 3 0 0 2 3 0 2 1 0 2 0 1 3 0```

another correct solution would be:
0 1 2 3 0
2 3 0 0 1
0 0 3 1 2
1 0 0 2 3
3 2 1 0 0
{"ft_lang_label":"__label__en","ft_lang_prob":0.79381603,"math_prob":0.9943931,"size":1118,"snap":"2020-45-2020-50","text_gpt3_token_len":371,"char_repetition_ratio":0.11669659,"word_repetition_ratio":0.025423728,"special_character_ratio":0.34168157,"punctuation_ratio":0.14181818,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9695227,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-04T08:20:03Z\",\"WARC-Record-ID\":\"<urn:uuid:a03ff711-e09d-4e0b-b97b-c93b94e7a14f>\",\"Content-Length\":\"16884\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:43303258-70f8-4d83-8f4b-993a7ff263ac>\",\"WARC-Concurrent-To\":\"<urn:uuid:f22202f7-fc56-4af1-8f61-b8fdbda9420d>\",\"WARC-IP-Address\":\"176.9.60.206\",\"WARC-Target-URI\":\"http://mendo.mk/Task.do?id=211\",\"WARC-Payload-Digest\":\"sha1:LZP6AMBRDA6LTYWPHUH4RN36RAX3GKTY\",\"WARC-Block-Digest\":\"sha1:ANHFTKPM2F2AONO6LUM6JXEQ75GNNIGF\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141735395.99_warc_CC-MAIN-20201204071014-20201204101014-00142.warc.gz\"}"}