S = input() LS = list(S) LF = [i for i in range(10)] LT = [] for i in LS: if i.isdigit(): LT.append(i) sum = 0 for i in LT: sum += int(i) print(sum)