A Ridiculous Problem

Limits 1s, 512 MB

Let's face it. This problem is here just to spite you off. So, I will not beat around the bush.

You will be given a grid; a grid with dots and asterisks. The dots are white spaces. The asterisks are, well, on their own, they mean nothing. But if you look at the grid, squint your eyes and try to observe the shape that the asterisks make in the grid you will notice that they look like the English alphabet.

Your task here is to write a program that will take a grid as an input, and print the text that it represents.

The grid will be composed of blocks. Each block, 5×75×7 in size, will have a character in it represented by the shape made by the asterisks. Between two blocks with a character each, will be an empty column of dots. The grid will only have letters from the uppercase English alphabet. There will be no lower case letters, spaces, punctuation, numbers, or special characters.

Here is an image showing what the characters will look like:

And, here is an example of what the character "I" would look like with asterisks in a grid:

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

Input

There will always be 7 lines of characters in the input. The number of characters in each line will be the same and they will never exceed 250. The lines will only have dots (".") or asterisks ("*") and the grid will represent valid text only (i.e. text consisting of the 26 uppercase English alphabets).

Output

Print the text that is represented by the grid.

Samples

InputOutput
.***...***...***..****.
*...*.*...*.*...*.*...*
*.....*...*.*...*.*...*
*.....*...*.*...*.*...*
*..**.*...*.*...*.*...*
*...*.*...*.*...*.*...*
.***...***...***..****.
GOOD
InputOutput
*.....*...*..***..*...*
*.....*...*.*...*.*..*.
*.....*...*.*.....*.*..
*.....*...*.*.....**...
*.....*...*.*.....*.*..
*.....*...*.*...*.*..*.
*****..***...***..*...*
LUCK