H
# Special case: 10-19
g/1[0-9]$/s//&'th/
g/1$/s//&'st/
g/2$/s//&'nd/
g/3$/s//&'rd/
g/[0-9]$/s//&'th/
# Join by spaces, purely for aesthetics.
g/.*/s//& /
,j
,p
Q