Painting a Red X

sohomsahaun AUST CSE Carnival 1.0 Pr...
Limits 1s, 512 MB

The ground floor of AUST has been renovated. It now looks like a square with N×NN \times N tiles. The tiles are painted white.

Petya thinks it doesn't look good without a red X somewhere on the ground floor. So he decides to paint a big red “X” at the tile centered at (R,C)(R,C) by coloring the tiles. He initially wanted to make the sides of the “X” three tiles wide.

To gain more visibility from above, he decided to not color the tiles at the center of the sides of X.

Input

The only line in the input contains three integers: NN (1N1000)1 \le N \le 1000), RR (1RN1 \le R \le N) and CC (1CN1 \le C \le N).

Output

Print the ground floor after drawing the X.

  • White color is denoted as a dot (.)

  • Red color is denoted as an asterisk (*)

Samples

InputOutput
11 6 6
.*.......*.
*.*.....*.*
.*.*...*.*.
..*.*.*.*..
...*.*.*...
....*.*....
...*.*.*...
..*.*.*.*..
.*.*...*.*.
*.*.....*.*
.*.......*.
InputOutput
7 3 7
...*.*.
....*.*
.....*.
....*.*
...*.*.
..*.*..
.*.*...

Submit

Login to submit.

Statistics

60% Solution Ratio
AUST_D4CEarliest, 3w ago
sohomsahaunFastest, 0.0s
sohomsahaunLightest, 5.7 MB
zms.primeShortest, 431B
Toph uses cookies. By continuing you agree to our Cookie Policy.