int i;string[]t,u=stdin;for(;u[i]!="$";++i)t[i]=u[i];for(;u[++i]!="0";)for(string r:t)write(find(r,"@i")<0?r:replace(r,"@i",u[++i]));
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page