import List d f=f.f main=getLine>>=interact.d.((unlines.transpose.lines).).(#) a#(c:x)|take 4x\\a>""=c:a#x|x>""=c:[' '|n<-a]++a#(x\\a)|1>0=x