s=input() import re a= re.findall(r'[0-9]',s) if a: print(sum(a)) else: print(0)