import re a = input() b = re.findall(r'\d+', a) c = ''.join(b) result = sum(list(map(int, str(c)))) print(result)