Under construction

Still being built. Things may change

Printing Stars - 19

Time limit1sMemory limit256 MB

Summary
Print the N-level nested square star figure that the sample cases define.
Level

Easy3 of 10

Topics
Recursion, Implementation
Solved
No attempts yet

Problem

Work out the drawing rule from the sample cases, then print the picture that matches the given NN.

Input

The first line contains NN. (1≤N≤1001 \le N \le 100)

Output

Print the picture built by the rule, one line at a time, starting from the first line.

Examples4

  1. Example 1

    Input
    1
    
    Expected output
    *
    
  2. Example 2

    Input
    2
    
    Expected output
    *****
    *   *
    * * *
    *   *
    *****
    
  3. Example 3

    Input
    3
    
    Expected output
    *********
    *       *
    * ***** *
    * *   * *
    * * * * *
    * *   * *
    * ***** *
    *       *
    *********
    
  4. Example 4

    Input
    4
    
    Expected output
    *************
    *           *
    * ********* *
    * *       * *
    * * ***** * *
    * * *   * * *
    * * * * * * *
    * * *   * * *
    * * ***** * *
    * *       * *
    * ********* *
    *           *
    *************