a=input() ans=[] for i in a: if i.isdigit(): ans+=i b=map(int,ans) print(sum(b))