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