#P428. 【例74.3】 彼得·潘框架
【例74.3】 彼得·潘框架
Description
The "Peter Pan Frame" is a decorative text style where each letter is enclosed in a diamond-shaped frame. A Peter Pan frame looks like this (where is the letter and # is the frame):
..#.. .#.#. #.X.# .#.#. ..#..
However, just using frames would be a bit dull, so every third letter is enclosed in a Wendy frame. A Wendy frame looks like this:
..*.. .*.*. *.X.* .*.*. ..*..
When Wendy and Peter Pan frames overlap, the Wendy frame is placed on top.
Input Format
One line containing at most uppercase English letters.
Output Format
Output lines of text using Peter Pan and Wendy frames.
Sample
DOG..#...#...*..
.#.#.#.#.*.*.
#.D.#.O.*.G.*
.#.#.#.#.*.*.
..#...#...*..