s = list(input()) ans = 0 for i in range(len(s)): if s[i].isdigit(): ans += int(s[i]) print(ans)