Hollow Square

easy
1. You are given a number N.
2. You've to create a pattern as shown in output format

Input Format

The first and only line of input contains an integer N

Output Format

<img src="https://pepcoding.com/resources/ojquestionresource/images/hollowSquare.png" alt="hollow_square"> Note: In the above image, there is a space between consecutive elements, which are either numbers or stars.

Constraints

2 <= N <= 20

Example

Input
4
Output
1 2 3 4 
9 * * 12 
13 * * 16 
5 6 7 8 
Previous
Mad Angles
Next
Radial Pattern

Related Questions