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