import re sum = 0 nums = re.findall(r'[0-9]', input()) for num in nums: sum += int(num) print(sum)