while 1: t=c=l=0 for d in raw_input(): c=int(`c`+d) if c>=l:print c,;l=c;c=0;t+=l print"=%s"%t