s = input().strip() total = 0 for c in s: if c.isdigit(): total += int(c) print(total)