eolymp
bolt
Try our new interface for solving problems
Problems

*Frame 3

*Frame 3

For the given positive integer n print the square frame of size n * n from stars, filled with spaces as shown in the sample.

Input

One positive integer n (n100).

Output

Print the square frame of size n * n.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5
Output example #1
*****
*   *
*   *
*   *
*****
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"