q=input() sum=0 for i in q: if i.isdigit(): sum+=int(i) print(sum)