import re
a = re.findall('\d', input())
b = [int(c) for c in a]
print(sum(b))