Since ACTA has entered into force, Slavko has been spending his time offline, solving crosswords. Having solved almost all that he could get his hands on, he wants to make a few crosswords of his own. However, he is too sloppy for such fine work, so he has asked you to help him generate the crosswords.
You are given two words, ABBA
and CCBB
, you need to output
.C..
.C..
ABBA
.B..
Input Specification
The first and only line of input contains two words,
Output Specification
Let .
), thus padding all lines to the length of
Sample Input 1
BANANA PIDZAMA
Sample Output 1
.P....
.I....
.D....
.Z....
BANANA
.M....
.A....
Sample Input 2
MAMA TATA
Sample Output 2
.T..
MAMA
.T..
.A..
Sample Input 3
REPUBLIKA HRVATSKA
Sample Output 3
H........
REPUBLIKA
V........
A........
T........
S........
K........
A........
Comments