S=input() sum=0 for i in S: if i<"0" or i>"9": pass elif i>="0" or i<="9": sum+=int(i) print(sum)