for(r=readline;n=r(p=r(r(q='')));print(Array(n>0?++n:1-n).join(n>0?p:q)))for(j in p)q=p[j]+q
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page