P28348 [洛谷] [COCI2006-2007#1] Okviri
普及-
题目描述

Problem Description

"Peter Pan frames" are a way of decorating text in which every character is framed by a diamond shaped frame, with frames of neighboring characters interleaving. A Peter Pan frame for one letter looks like this ('X' is the letter we are framing):

..#..
.#.#.
#.X.#
.#.#.
..#..

However, such a framing would be somewhat dull, so we'll frame every third letter using a "Wendy frame". 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. For an example of the interleaving, check the sample cases.

Input Format

The first and only line of input will contain at most 15 capital letters of the English alphabet.

Output Format

Output the word written using Peter Pan and Wendy frames on 5 lines.

Sample Input and Output

Sample Input #1

A

Sample Output #1

..#..
.#.#.
#.A.#
.#.#.
..#..

Sample Input #2

DOG

Sample Output #2

..#...#...*..
.#.#.#.#.*.*.
#.D.#.O.*.G.*
.#.#.#.#.*.*.
..#...#...*..

Sample Input #3

ABCD

Sample Output #3

..#...#...*...#..
.#.#.#.#.*.*.#.#.
#.A.#.B.*.C.*.D.#
.#.#.#.#.*.*.#.#.
..#...#...*...#..
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
A
样例输出
..#.. .#.#. #.A.# .#.#. ..#..