import re first = int(input()) second = int(input()) list = re.findall(r'\d+', second) print(sum(list))