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