Letterbox

Make a box!

Input

abcdefg

Output

a b c d e f g
b           f
c           e
d           d
e           c
f           b
g f e d c b a