A = str(input().split()) Sum = 0 for i in range(len(A)): if re.search(r'\d', A[i]) is None: continue else: Sum += int(A[i]) print(Sum)