Limits 1s, 512 MB

Given RR, CC and DD, you will produce a pattern consisting of asterisks (*\texttt{*}) and dots (.\texttt{.}). The pattern is composed of diamonds repeated on a grid both horizontally and vertically.

You will print RR lines of strings. Each line will consist of CC characters (either asterisk or dot).

DD will determine the number of asterisks in the diamond.

When D=1D = 1,

*

When D=2D = 2,

.*.
***
.*.

When D=3D = 3,

..*..
.***.
*****
.***.
..*..

When D=4D = 4,

...*...
..***..
.*****.
*******
.*****.
..***..
...*...

And, so on.

Input

You will be given three integers, RR, CC, and DD (1R,C,D101 \le R, C, D \le 10).

Output

You will print the patterns as described in the problem statement.

Samples

InputOutput
5 7 2
.*..*..
*******
.*..*..
.*..*..
*******
InputOutput
7 7 3
..*....
.***..*
*******
.***..*
..*....
..*....
.***..*

Submit

Login to submit.

Statistics

79% Solution Ratio
EgorKulikovEarliest, 7M ago
lzytouristFastest, 0.0s
abdullah.790Lightest, 5.1 MB
Nusab19Shortest, 204B
Toph uses cookies. By continuing you agree to our Cookie Policy.