import re list1=[] S = input() result = re.findall(r'\d', S) for i in range(len(result)): list1.append(int(result[i])) print(sum(list1))