"Peter Pan frames" are a way of decorating text in which every character is framed by a diamond-shaped frame, with the frames of neighbouring characters interleaving. A Peter Pan frame for one letter looks like this (X is the letter being framed):
..#..
.#.#.
#.X.#
.#.#.
..#..
However, such a framing would be somewhat dull, so we frame every third letter using a "Wendy frame" instead. A Wendy frame looks like this:
..*..
.*.*.
*.X.*
.*.*.
..*..
When a Wendy frame interleaves with a Peter Pan frame, the Wendy frame (being much nicer) is put on top. See the sample cases for an example of the interleaving.
Input
The first and only line of input contains at most $5$ capital letters of the English alphabet.
Output
Output the word written using Peter Pan and Wendy frames, on $5$ lines.
Example 1
A
..#.. .#.#. #.A.# .#.#. ..#..
Example 2
DOG
..#...#...*.. .#.#.#.#.*.*. #.D.#.O.*.G.* .#.#.#.#.*.*. ..#...#...*..
Example 3
ABCD
..#...#...*...#.. .#.#.#.#.*.*.#.#. #.A.#.B.*.C.*.D.# .#.#.#.#.*.*.#.#. ..#...#...*...#..
Discussion
Threads about this problem. Spoilers are collapsed; wrap hints in
||double bars||.No discussion yet. Start a thread if something here needs explaining.