a,b,*s=" %s "%open(0).read() for c in s:print(end=b*(2*(a!=b)-(b in"\n"+c)));a,b=b,c
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page