import re S=input() a=[c for c in S] pattern=r'([0-9])' b=re.findall(pattern,S) c=list(map(float,b)) print(int(sum(c)))