Star Letter Z


Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 256M

Author:
Problem types

Given a positive integer n, print the letter Z inside an n x n grid.

Input

  • One positive integer n.

Output

  • Use * for the top row, bottom row, and anti-diagonal. Do not print trailing spaces.

Constraints

  • 2 <= n <= 100

Example

Input
6
Output
******
    *
   *
  *
 *
******

Comments

There are no comments at the moment.