Zu

No attempts yetTime limit1sMemory limit256 MB

Problem

Gomez was exploring ancient ruins when he found a stone tablet carved with the writing of an ancient people. He knows nothing about the ancient script, so he cannot read the tablet, and he is looking for someone who can read it for him. If you know the ancient writing well, help poor Gomez.

Input

The first line has two natural numbers RR and CC. (1R,C501 \le R, C \le 50)

The next 6R16R - 1 lines hold the contents of the tablet. Each line has 6C16C - 1 characters, and every character is # or .. Read the examples to work out the exact layout.

Output

Print the result of reading the tablet. Every hint about the output format is already given.