Problem7694--USACO 2016 December Contest, Bronze —— Problem 3. The Cow-Signal

7694: USACO 2016 December Contest, Bronze —— Problem 3. The Cow-Signal

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

Description

Bessie and her cow friends are playing as their favorite cow superheroes. Of course, everyone knows that any self-respecting superhero needs a signal to call them to action. Bessie has drawn a special signal on a sheet of $M×N$ paper ($1≤M≤10,\ 1≤N≤10$), but this is too small, much too small! Bessie wants to amplify the signal so it is exactly $K$ times bigger ($1≤K≤10$) in each direction. The signal will consist only of the '.' and 'X' characters.

Input

The first line of input contains $M, N, K$, separated by spaces. The next $M$ lines each contain a length-$N$ string, collectively describing the picture of the signal.

Output

You should output $KM$ lines, each with $KN$ characters, giving a picture of the enlarged signal.

Sample 1 Input

5 4 2
XXX.
X..X
XXX.
X..X
XXX.

Sample 1 Output

XXXXXX..
XXXXXX..
XX....XX
XX....XX
XXXXXX..
XXXXXX..
XX....XX
XX....XX
XXXXXX..
XXXXXX..

HINT

相同题目:USACO

Source/Category