Олимпиадный тренинг

Задача 42870. Right Triangle - 4


Write a subroutine draw_figure(symbol, side) that draws a figure consisting of two isosceles right triangles (see examples).

Where
  • symbol - placeholder symbol that draws the shape;
  • side - the size of the legs of a right triangle.

Input
The first line contains a placeholder character (symbol), in the second line - the size of the legs (side) .

Imprint
Display the response shape.
 
Examples
# Input Output
1
*
5
*****
****
***
**
*
*
**
***
****
*****
2
x
3
xxx
xx
x
x
xx
xxx