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