import re

try:

    ls = []

    result = 0

    while True:

        ls.append(eval(input()))

except:

    for i in ls:

        for s in re.findall(r'\d+', i):

            result += int(s)

    print(result)
import re

try:

    ls = []

    while True:

        ls.append(eval(input()))

except:

    result = 0

    for i in ls:

        for s in re.findall(r'\d+', i):

            result += int(s)

    print(result)
import re

try:
    ls = []
    result = 0
    while True:
        ls.append(eval(input()))
except:
    for i in ls:
        for s in re.findall(r"\d+", i):
            result += int(s)
    print(result)

import re

try:
    ls = []
    while True:
        ls.append(eval(input()))
except:
    result = 0
    for i in ls:
        for s in re.findall(r"\d+", i):
            result += int(s)
    print(result)

-    result = 0 +    result = 0