import re s= input() s2 = re.findall('[0-9]',s) s2 = [int(i) for i in s2] print(sum(s2))