import re s = input() t = re.findall(r"\d", s) print(sum(map(int, t)))