404142: GYM101431 A Vera and ABCDE

Memory Limit:512 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Vera and ABCDEtime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard output

When Vera was learning English, she had 5 types of toy blocks, one for each of the first 5 uppercase letters. A block can be represented as a 5 × 3 grid with characters . and *. The 5 types of blocks look like the following:


*** *** *** *** ***
*.* *.* *.. *.* *..
*** *** *.. *.* ***
*.* *.* *.. *.* *..
*.* *** *** *** ***

Vera has a word S with N letters and wonders what the corresponding sequence of blocks look like when arranged in a row.

Input

Line 1 contains integer N (1 ≤ N ≤ 2017).

Line 2 contains string S of length N, and consists of only letters A, B, C, D, E.

Output

Print 5 lines, each with 3N characters, the corresponding sequence of blocks.

ExamplesInput
5
ABCDE
Output
***************
*.**.**..*.**..
*******..*.****
*.**.**..*.**..
*.*************
Input
10
ECADBECADB
Output
******************************
*..*..*.**.**.**..*..*.**.**.*
****..****.********..****.****
*..*..*.**.**.**..*..*.**.**.*
*******.**************.*******

加入题单

上一题 下一题 算法标签: