ans=0 for i in input(): if i.isdecimal(): ans+=int(i) print(ans)