S = raw_input() total = 0 for c in S: if c.isdigit(): total += int(c) print total