l = list(input()) total = 0 for i in l: if i.isdigit(): total += int(i) print(total)