s = input() total = 0 for i in s: if i.isnumeric(): total += int(i) print(total)