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

Submit

Login to submit.

Statistics

78% Solution Ratio
dip_BRUREarliest, Aug '19
subhashis_cseFastest, 0.0s
dip_BRURLightest, 131 kB
touhidurrrShortest, 186B
Toph uses cookies. By continuing you agree to our Cookie Policy.