시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 512 MB 20 20 19 100.000%

문제

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.

입력

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.

출력

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

예제 입력 1

5
ABCDE

예제 출력 1

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

예제 입력 2

10
ECADBECADB

예제 출력 2

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