import re S=input() num=re.findall('\d',S) num=[int(s) for s in num] print(sum(num))