S = input() import re matched = re.findall("\d",S) print(sum(map(int, matched)))