S = input() answer = 0 for i in S : if i not in ["1","2","3","4","5","6","7","8","9"] : answer += 0 else : i = int(i) answer += i print(answer)