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