CDMA
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 512 M,其他语言1024 M
Special Judge, 64bit IO Format: %lld

题目描述

Gromah and LZR have entered the third level. There is a blank grid of size , and above the grid is a word "CDMA".

In CDMA Technology, a Technology about computer network, every network node should be appointed a unique binary sequence with a fixed and the same length. Moreover, if we regard in the sequence as , and regard as , then these sequences should satisfy that for any two different sequences , the inner product of  should be exactly .

The inner product of two sequences  with the same length  equals to .

So, the key to the next level is to construct a grid of size , whose elements are all or , and for any two different rows, the inner product of them should be exactly .

In this problem, it is guaranteed that  is a positive integer power of and there exists some solutions for input . If there are multiple solutions, you may print any of them.

输入描述:

Only one positive integer in one line.


输出描述:

Print  lines, each contains a sequence with length , whose elements should be all  or  satisfying that for any two different rows, the inner product of them equals .

You may print multiple blank spaces between two numbers or at the end of each line, and you may print any number of blank characters at the end of whole output file.
示例1

输入

复制
2

输出

复制
1 1
1 -1

说明

The inner product of the two rows is 1\times(-1) + 1\times 1 = 0.