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