import re s = map(str, raw_input()) sum = 0 for x in s: check = re.match('\d', x) if check != None: sum = sum + int(check.group()) print sum