while 1: s=k=x=0 for d in raw_input(): x=int(`x`+d) if k<=x:k=x;print x,;s+=x;x=0 print'='+`s`