while 1: p=c=s=0 for x in raw_input(): \x09c=int(`c`+x) \x09if c>=p:s+=c;print c,;p=c;c=0 print"="+`s`
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page