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