P6321 [COCI 2006/2007 #4] SKENER
Background
Mirko is looking at a magazine through a magnifying glass.
Description
He is looking at a magazine of $r$ rows and $c$ columns. The magnifying glass has two parameters, $zr, zc$, meaning that each character is converted into a matrix of $zr$ rows and $zc$ columns.
Given the original magazine, help him find the image of the magazine under the magnifying glass.
Input Format
The first line contains four integers $r, c, zr, zc$.
The next $r$ lines each contain $c$ characters. The characters may be digits, letters, or `.`.
Output Format
Output a matrix with $r \times zr$ rows and $c \times zc$ columns, representing the image under the magnifying glass.
Explanation/Hint
#### Constraints
For $100\%$ of the testdata, it is guaranteed that $1 \le r, c \le 50$ and $1 \le zr, zc \le 5$.
#### Notes
**This problem is translated from [COCI2006-2007](https://hsin.hr/coci/archive/2006_2007/) [CONTEST #4](https://hsin.hr/coci/archive/2006_2007/contest4_tasks.pdf) *T2 SKENER***
Translated by ChatGPT 5