var s,t:string(999);begin repeat readln(t);t:=t+^j;str(s:pos(t,s+t)-1,t,copy(s,pos(t,s+t)),s)until eof;write(s)end.
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page