#C3382. Hollow Square

    ID: 46803 Type: Default 1000ms 256MiB

Hollow Square

Hollow Square

Given a positive integer \(N\) (with \(1 \le N \le 100\)), your task is to print a hollow square of size \(N \times N\) made entirely of asterisks (*). The border of the square is completely filled with asterisks, while the inside is hollow (filled with spaces). Each row of the square should be printed on a new line.

For example, when \(N = 3\), the output should be:

***
* *
***

Make sure your program reads from standard input (stdin) and writes to standard output (stdout).

inputFormat

The input consists of a single integer \(N\) denoting the size of the square.

For example:

3

outputFormat

Output the hollow square pattern corresponding to the given \(N\). Each row must be printed on a new line without any trailing spaces.

## sample
1
*