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