S = input() total = 0 for s in S: if s.isdigit(): total = total + int(s) print(total)