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