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