import List t=transpose main=interact$unlines.t.map(f.partition(>'z')).t.lines;f(_:a,b)=a++b++"|"