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