s=input() num="1234567890" ans=0 for i in s: if i in num: ans+=int(i) print(ans)