print("\\w+".r.replaceAllIn(""++io.Source.stdin,m=>{val a=m.before+""split"(?i:\\b"+m+"\\b)" if(a.size<2)m+""else m+a.last+m}))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page