D = '0123456789' s = input() ans = 0 for c in s: if c in D: ans += int(c) print(ans)