while""do s=0 a=0 b=0 for c in io.read():gfind"."do b=10*b+c if b>=a then s=s+b a=b io.write(b," ")b=0 end end print("="..s)end