for(;r=readline();)print.apply(0,[w+(~x?-x:'')for each(w in'm0kg0s0A0K0mol0cd'.split(0))if(x=0,r.replace(eval('/'+w+'(\\d?)\\b/g'),function(_,b)x-=b||1),x)])
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page