The Rorschach test is a psychological test that was introduced in 1921 by the Swiss psychologist Hermann Rorschach. An inkblot is made on one side of a card, and then mirrored on the other half by folding the card. A subjects' perceptions of the inkblots are recorded and then analyzed using psychological interpretation, complex algorithms, or both. Some psychologists use this test to examine a person's personality characteristics and emotional functioning. It has been employed to detect underlying thought disorder, especially in cases where patients are reluctant to describe their thinking processes openly.
Your task is to write a program that generates cards that can be used in the Rorschach test. This is done by transforming a given text pattern — representing an inkblot — into a pattern that is formed from the original pattern with a mirrored version of the pattern to its right. Click here to switch between a display of the left half of the pattern, and the complete pattern whose the right half is formed as the mirror image of the left half.
++...+..+++.
....++......
.+.#####+###
...#@#@#.#@#
.+.#####.##@
....+.+...##
.....+......
....+.....##
....+..+..#@
......###.##
+...++#@#.+.
....#####...
....#@#....+
++..###.+...
+.....+.....
The input consists of a number of lines, each containing the same number of characters. The input ends with an empty line.
For each line read from input (except for the final empty line), a line must be written to output that contains the content of the line as read from input, followed by a mirrored version of the characters in the line read from input.
Input:
++...+..+++.
....++......
.+.#####+###
...#@#@#.#@#
.+.#####.##@
....+.+...##
.....+......
....+.....##
....+..+..#@
......###.##
+...++#@#.+.
....#####...
....#@#....+
++..###.+...
+.....+.....
Output:
++...+..+++..+++..+...++
....++............++....
.+.#####+######+#####.+.
...#@#@#.#@##@#.#@#@#...
.+.#####.##@@##.#####.+.
....+.+...####...+.+....
.....+............+.....
....+.....####.....+....
....+..+..#@@#..+..+....
......###.####.###......
+...++#@#.+..+.#@#++...+
....#####......#####....
....#@#....++....#@#....
++..###.+......+.###..++
+.....+..........+.....+