Completely Non-zero Determinant#1929

Completely Non-zero Determinant

2 seconds
256 megabytes
Easy

Given an integer , you need to construct an n \times n matrix consisting of zeroes and ones. This matrix must satisfy the following property: for every , where 1 \le m \le n, and every , where 1 \le a \le n - m + 1, the sub-matrix formed by rows through and columns through a + m - 1 of is non-singular over \mathbb{F}_2.

Recall that an m \times m matrix over \mathbb{F}_2 is non-singular if there exists an odd number of permutations of the elements 1, 2, \ldots, m such that all elements P_{1, p_1}, P_{2, p_2}, \ldots, P_{m, p_m} are equal to one.

Input

The first and only line of the input file contains an integer , where 1 \le n \le 100.

Output

Print the required matrix in lines, each containing integers (zeroes or ones) separated by single spaces.

Examples

Example 1

Loading
Loading