s = input() ans = 0 for c in s: if str.isnumeric(c): ans += int(c) print(ans)