import string def solve(s): ret = 0 for c in s: if c in string.digits: ret += int(c) print(solve(input()))