r=raw_input;p=r();q=r();d='' for c in p:d+=c;print"%s[%s]%s"%q.rpartition(d)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page