#cording: utf-8 import re s = list(input()) pattern = r'([+-]?[0-9]+\.?[0-9]*)' num = [] for i in s: a = re.findall(pattern, i) if len(a) != 0: num.append(a) s = 0 for i in num: s = s + int(i[0]) print(s)