Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Shape of Quadrilateral

Limits: 1s, 512 MB

Atcoder is a name of famous online judge. Here lhe problem statement is described briefly. This problem setter likes that. So you can assume that the problem statement of this challange will also be described in brief.

In this challange you have to print a quadrilateral shape according to the following conditions.

  1. At the middle a zero “0” have to print.
  2. From “0” corner’s distance will be same which indicates N astrics(*) .
  3. N+1 astrics will form each side of the quadrilateral.

Input

Input file contains only an integer N

1<=N<=102

Output

Only print the described quadrilateral shape.

For more clearification you can see sample input output.

Samples

InputOutput
5
     *
    ***
   * * *
  *  *  *
 *   *   *
*****0*****
 *   *   *
  *  *  *
   * * *
    ***
     *

Problem Setter : Md. Masud Mazumder

Discussion