nya_n = str(raw_input()) nyansum = 0 for val in nya_n: if val.isdigit(): nyansum += int(val) print nyansum