s=input() x='' d='' sum=0 for i in s: if(i>='0' and i<='9'): d+=i else: if(d!=''): sum+=int(d) d='' x+=i if(d!=''): sum+=int(d) print(x+str(sum))
To embed this program on your website, copy the following code and paste it into your website's HTML: