시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 574 402 375 71.702%

문제

상근이는 매일 아침 영자 신문을 학교에 가져와서 읽는다. 하지만, 상근이의 눈은 점점 나빠졌고, 더 이상 아침 신문을 읽을 수 없는 상황에 이르렀다. 상근이는 스캐너를 이용해서 글자를 확대한 다음에 보려고 한다.

신문 기사는 글자로 이루어진 R*C 행렬로 나타낼 수 있다. 글자는 알파벳과 숫자, 그리고 마침표로 이루어져 있다.

스캐너는 ZR과 ZC를 입력으로 받는다. 이렇게 되면, 스캐너는 1*1크기였던 각 문자를 ZR*ZC크기로 확대해서 출력해 준다.

신문 기사와 ZR, ZC가 주어졌을 때, 스캐너의 스캔을 거친 결과를 구하는 프로그램을 작성하시오.

입력

첫째 줄에 R, C, ZR, ZC가 주어진다. R과 C는 1과 50 사이의 정수이고, ZR과 ZC는 1과 5 사이의 정수이다.

다음 R개 줄에는 신문 기사가 주어진다.

출력

스캐너에 스캔된 결과를 총 R*ZR개 줄에 걸쳐서 C*ZC개 문자씩 출력한다.

예제 입력 1

3 3 1 2
.x.
x.x
.x.

예제 출력 1

..xx..
xx..xx
..xx..

힌트

W3sicHJvYmxlbV9pZCI6IjMwMzUiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWMyYTRcdWNlOTBcdWIxMDgiLCJkZXNjcmlwdGlvbiI6IlxyXG48cD5cclxuXHRcdWMwYzFcdWFkZmNcdWM3NzRcdWIyOTQgXHViOWU0XHVjNzdjIFx1YzU0NFx1Y2U2OCBcdWM2MDFcdWM3OTAgXHVjMmUwXHViYjM4XHVjNzQ0IFx1ZDU1OVx1YWQ1MFx1YzVkMCBcdWFjMDBcdWM4MzhcdWM2NDBcdWMxMWMgXHVjNzdkXHViMjk0XHViMmU0LiBcdWQ1NThcdWM5YzBcdWI5Y2MsIFx1YzBjMVx1YWRmY1x1Yzc3NFx1Yzc1OCBcdWIyMDhcdWM3NDAgXHVjODEwXHVjODEwIFx1YjA5O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