answer = 0 for s in list(input()): if s.isdigit(): answer += int(s) print(answer)