n=0 while 1:s='%12s '%[raw_input,str][n%2]();n+=1;x=1;b=n==16;exec"s+='-------+'*(x==n&-n)or'%8s'%'|+'[b][:1