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