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.

Sample

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

Problem Setter : Md. Masud Mazumder


    Discussion
    Statistics

    79% Solution Ratio

    dip_BRUREarliest, 3M ago

    subhashis_cseFastest, 0.0s

    dip_BRURLightest, 131 kB

    touhidurShortest, 186B

    Submit

    Login to submit