a="" while 1:b=raw_input(a)+"\n";n=0;exec"x=n-b.find(a[n:n+9]);n+=x>n;"*99;a=" "*x+b

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page