DWITE Contest

Test Case for Question #1 in DWITE 2010-2011 High School Round 4

Contest: DWITE 2010-2011 High School Round 4
Question: #1
Input File: DATA1.txt
Output File: OUT1.txt


Input

3
2
5
1
10




Output

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