S = str(input()) sum = 0 for c in S: if c.isdigit(): sum += int(c) print(sum)