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