s = input() nums = [str(i) for i in range(10)] ans = 0 for e in s: if e in nums: ans += int(e) print(ans)