e-olymp
Competitions

Вступ_Заоч-3

*Frame 4

For the given positive integers n and m print the rectangular frame of size n * m from stars, filled with spaces as shown in the sample.

Input

Two positive integers n and m (n, m100).

Output

Print the rectangular frame of size n * m.

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