import re text = input() total = 0 for v in text : if re.search('\d',v) is not None : total += int(v) print(str(total))