b=(th st nd rd) read a echo $a${b[a/5%20-2?$a%10:0]-th} . *
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page