#867
Bronze II
MAGIJA
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

The well-known magician Al'Dimi Kartimi needs a program to help him design the back side of his cards.

Al'Dimi first draws the upper left quarter of the card, mirrors it horizontally onto the upper right quarter and then vertically mirrors the entire upper half onto the lower half.

After the mirroring, Al'Dimi also adds a small error (changes the appearance of one square) to help him determine which card it is (to cheat, if you will).

Help Al'Dimi by writing a program that, given the design of the upper left quarter and the location of the error, draws the entire back side.

Here are three examples of Al'Dimi's cards (the error is shaded gray):

###.##.###
##########
.########.
..######..
####.#####
##########
..######..
.########.
##########
###.##.###
#.#..#.#
#.####.#
#.####.#
........
.#.##.#.
.#.##.#.
........
#.####.#
#.####.#
#.#.##.#
.#.##.##
#.#..#.#
........
..#..#..
..#..#..
........
#.#..#.#
##.##.##

입력

The first line of input contains two integers, RR and CC (1R,C501 \le R, C \le 50), the number of rows and columns in the upper left quarter of the card.

Each of the RR following lines contains CC characters '.' or '#', the design of the upper left quarter.

The next line contains two integers, AA and BB (1A2R1 \le A \le 2R, 1B2C1 \le B \le 2C), the row and column of the error.

출력

Output 2R2R rows, each containing 2C2C characters, the design of the back side.

코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Bronze II1명 투표· 약 1개월 전
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.