import re r='[0-9]' p=re.compile(r) s = input() t = 0 for i in range(len(s)): if p.match(s[i]): t+=int(s[i]) print(t)