Skip to content
UPEEC

Star Pyramid

Easy#basics#loops#patterns· solved by 0 · time limit 2.0 s

Print a centred pyramid with nn rows. Row kk has n−kn-k spaces followed by 2k−12k-1 stars (no trailing spaces).

Input

A single integer nn.

Output

nn lines.

Constraints

1≤n≤501 \le n \le 50

Sample 1

Input

3

Output

  *
 ***
*****

Sign in or join free to run and submit your solution.