s = str(input()) t = 0 for i in s: if i.isdecimal(): t += int(i) else: continue print(t)