Binary Border Square


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Given a positive integer n, print an n x n square where border cells are 1 and inner cells are 0.

Input

  • One positive integer n.

Output

  • Values on the same line are separated by exactly one space.

Constraints

  • 2 <= n <= 100

Example

Input
5
Output
1 1 1 1 1
1 0 0 0 1
1 0 0 0 1
1 0 0 0 1
1 1 1 1 1

Comments

There are no comments at the moment.