Enlarging the Cow Signal

Print an M by N grid of dots and X characters with each cell repeated K times in both directions.

Easy2ImplementationArrayNo attempts yetTime limit2sMemory limit512 MB

Problem

Bessie and her cow friends are playing as their favorite cow superheroes. Calling a superhero into action takes a signal. Bessie drew a special signal on a sheet of paper of size M×NM \times N (1M101 \le M \le 10, 1N101 \le N \le 10), but the drawing is far too small. Bessie wants to enlarge the signal so that it is exactly KK times bigger in each direction (1K101 \le K \le 10).

The signal consists only of the characters '.' and 'X'.

Input

The first line contains MM, NN, and KK, separated by spaces.

Each of the next MM lines contains a string of length NN. Together these MM strings describe the picture of the signal.

Output

Print the enlarged signal as KMKM lines, each with KNKN characters.