l=io.read"*l"c=0 while""do t=io.read(1)if t=="#"then c=c+1 io.write(l:sub(c,c))else io.write(t)end end