eolymp
bolt
Try our new interface for solving problems
Problems

Spiral

Spiral

Fill the array of size n × n with ones by spiral (see sample).

Input

One odd positive integers n, not greater than 50.

Output

Print the built spiral. The middle cell must contain 0.

Time limit 1 second
Memory limit 128 MiB
Input example #1
7
Output example #1
1111111
0000001
1111101
1000101
1011101
1000001
1111111