import re input_lines = input() ro = re.compile(r"\d") mo = ro.findall(input_lines) if mo == None: print(0) else: me = list(map(int, mo)) print(sum(me))