import re S = raw_input() match = re.findall(r'[0-9]+',S) k=0 for i in match: match_list = list(i) for num in match_list: k += int(num) print(k)