Under construction

Still being built. Things may change

Grid Drawing

Time limit1sMemory limit1024 MB

Summary
Given cell size k, grid width w, height h, and line thickness t, the task prints an ASCII grid of * for lines and . for cells.
Level

Easy2 of 10

Topics
Implementation, Simulation
Solved
No attempts yet

Problem

Integers kk, ww, hh, and tt are given. Draw a rectangular grid that is ww cells wide and hh cells tall. Each cell is k×kk \times k in size, and the lines are tt thick. Use the character * for lines and . for cells.

Input

The first line contains an integer kk (1≤k≤101 \le k \le 10). The second line contains an integer ww (1≤w≤101 \le w \le 10). The third line contains an integer hh (1≤h≤101 \le h \le 10). The fourth line contains an integer tt (1≤t≤101 \le t \le 10).

Output

Print the image of the grid.

Examples1

  1. Example 1

    Input
    3
    2
    1
    2
    
    Expected output
    ************
    ************
    **...**...**
    **...**...**
    **...**...**
    ************
    ************