s=substr;a=scan("stdin","");b=nchar(a);for(i in b:1)cat(s(a,i+1,b),s(a,1,i)," ",sep="")
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page