a = 0 for i in input(): if i.isdigit(): a += int(i) print(a)