import re S = input() U = [] for i in S: m = re.search(r"\d+", i) if m: U.append(int(m.group())) print(sum(U))