#P228. 【例38.2】 图形输出

【例38.2】 图形输出

Description

Print one of two patterns: a square or a diamond.

Input Format

The first line contains a capital letter indicating the type of pattern to output: 'Z' for square, 'L' for diamond;
The second line contains a positive integer x (1≤x≤100), representing the side length of the pattern.

Output Format

Output the corresponding pattern as shown in the sample.

Sample

L
4
   *
  ***
 *****
*******
 *****
  ***
   *