while 1: p=c=s=0 for x in raw_input(): c=int(`c`+x) if c>=p:s+=c;print c,;p=c;c=0 print"="+`s`