var s,t:string(999);begin repeat readln(t);t:=t+^j;insert(t,s,pos(t,s+t))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