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